草庐IT

STBI_LOAD

全部标签

ruby - `require' : cannot load such file -- spec_helper (LoadError)

我在创作bundlergem--test=rspecMyGem.我在其中获取存储库结构。当我尝试运行rspec代码时,出现以下错误:`require':cannotloadsuchfile--spec_helper(LoadError)然后我尝试应用requirerelative但我仍然收到错误:sheetal@ubuntu:~/sheetal/spec$rspecsheetal_spec.rb\/home/sheetal/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in`re

ruby - HomeBrew Mac os x 10.8 抛出错误 "no such file to load"

每当我在这台Mac操作系统机器上运行brew命令时,我都会收到以下错误>brewdoctor/usr/local/Library/Homebrew/macos.rb:251:in`require':nosuchfiletoload--macos/xcode(LoadError)from/usr/local/Library/Homebrew/macos.rb:251from/usr/local/Library/Homebrew/utils.rb:3:in`require'from/usr/local/Library/Homebrew/utils.rb:3from/usr/local/Li

ruby - Homebrew 软件损坏 - "cannot load such file -- vendor/bundle/bundler/setup (LoadError)"

每次我尝试运行brew命令时,都会出现以下错误:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in`require':cannotloadsuchfile--vendor/bundle/bundler/setup(LoadError)from/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/r

ruby - Chef : cannot load such file -- moneta/basic_file

我正在运行一个我以前使用过无数次的Recipe,当我用chef+knife启动一个新的EC2实例时,我遇到了这些错误。[2013-01-30T23:44:48+00:00]INFO:Processinguser[dan]actioncreate(/var/chef/cache/cookbooks/users/providers/manage.rbline65)[2013-01-30T23:44:48+00:00]INFO:user[dan]created[2013-01-30T23:44:48+00:00]INFO:Processingdirectory[/home/dan/.ssh]

ruby-on-rails - YAML::load 引发未定义的类/模块错误

我正在我的Rails应用程序中实现类似文件跟踪的功能。为此,我在YAML中序列化对象。我有item_at_version方法,它基本上执行YAML::load(cached_object)–这工作得很好,但是,我不知道为什么,有时它返回未定义的类/模块_类名_。它适用于Event、Conversation、Note等模型,但没有任何理由,它似乎会为Dataset、Comment、Student等模型抛出该错误(我试图找到任何模式,但没有任何运气).我正在使用rails3.2.8、ruby1.9.3p327、psych作为YAML引擎(Psych::Version返回1.3.4)。附言。

ruby - kernel_require.rb :55:in `require' : cannot load such file error

我目前使用的是Ruby1.9.3版(尽管我在使用Ruby2.0.0时遇到了同样的问题)。在Windows764位上。我正在关注“TheCucumberBook”并卡在第7.2章-“使用转换删除重复项”。我的文件夹结构如下:\cash_withdrawal\cash_withdrawal\Gemfile\cash_withdrawal\Gemfile.lock\cash_withdrawal\features\cash_withdrawal\features\cash-withdrawal.feature\cash_withdrawal\features\step_definitions

ruby-on-rails - 为什么都是autoload,load_all!并要求全部用于 active_support.rb?

我正在查看active_support.rb以尝试了解它使用的加载过程。它使用三种加载方法:load_all!、autoload和require。为什么在同一个文件中使用三种不同的加载方式?moduleActiveSupportdefself.load_all![Dependencies,Deprecation,Gzip,MessageVerifier,Multibyte,SecureRandom,TimeWithZone]endautoload:BacktraceCleaner,'active_support/backtrace_cleaner'autoload:Base64,'ac

ruby-on-rails - Rails 控制台 : in `require' : cannot load such file -- readline (LoadError)

我的Rails应用程序出现一些错误,我正在尝试通过发出以下命令来启动Rails控制台:railsconsole无论我尝试什么,我总是得到同样的错误:/usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/irb/completion.rb:9:in`require':cannotloadsuchfile--readline(LoadError)from/usr/local/rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/irb/completion.rb:9:in`'from/opt/mammie/web/icosole

ruby-on-rails - rails : Could not load database configuration. 没有这样的文件 -

我从GitHub存储库克隆了一个应用程序文件夹,在捆绑安装gems之后,我尝试使用rakedb:setup和rakedb:migrate命令,但都没有用,这是我的错误消息:**arun997@promanager:~/workspace(master)$rakedb:setuprequire'rails/all'...2.470sBundler.require...7.590srakeaborted!Cannotload`Rails.application.database_configuration`:Couldnotloaddatabaseconfiguration.Nosuchf

ruby-on-rails - `require' : cannot load such file -- capybara/rspec (LoadError)

我尝试测试我的项目。它以前是工作的,我不知道每当我输入bundleexecrspecspec/时我做了什么,它说cannotloadsuchfile--capybara/rspec(LoadError).我需要一个建议,作为新手,我需要一个建议来测试我在ruby​​onrails中的MVC。Gemfile:------------group:testdo#Prettyprintedtestoutputgem'turn',:require=>falsegem'minitest'gem'capybara','1.1.2'gem'rb-inotify','0.8.8'gem'libnotif