我的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
我尝试测试我的项目。它以前是工作的,我不知道每当我输入bundleexecrspecspec/时我做了什么,它说cannotloadsuchfile--capybara/rspec(LoadError).我需要一个建议,作为新手,我需要一个建议来测试我在rubyonrails中的MVC。Gemfile:------------group:testdo#Prettyprintedtestoutputgem'turn',:require=>falsegem'minitest'gem'capybara','1.1.2'gem'rb-inotify','0.8.8'gem'libnotif
我收到上述错误,我所做的只是安装rvm并从您使用mac获得的默认ruby更新到ruby1.9.2。我所有的gem都出现在gem列表中,但我需要在某处指定路径吗?干杯,格伦诺。 最佳答案 检查你是否安装了gemsgemlist如果没有,照常安装geminstallwhatever或者如果你想要特定版本geminstallwhatever-v1.2.3或者如果你的项目中有bundler(即Rails),它只是bundleinstall如果您拥有所有的gem,那么这可能是一个本地文件,并且您可能来自Ruby版本$LOAD_PATH
这个问题困扰了我几天...每当我使用.bring_to_front方法时require"rubygems"require"watir"browser=Watir::Browser::newbrowser.bring_to_front我收到这个错误:(...)rubygems/custom_require.rb:36:in`require':nosuchfiletoload--ffi_c(LoadError)我尝试卸载并重新安装ffi/watir/ruby/netbeans,但没有成功。第36行在custom_require.rb中defrequirepathifGem.unresolv
我学习了1个月的linux。当我尝试从MigratingfromMySQLtoPostgresonHeroku开始执行所有步骤时我遇到无法处理的错误。当我尝试从源代码安装mysqltopostgresgem时:$gitclonehttps://github.com/maxlapshin/mysql2postgres.git$cdmysql2postgres$bundleinstall$gembuildmysqltopostgres.gemspec$sudogeminstallmysqltopostgres-0.2.20.gem我在$bundleinstall上有一个错误:/home/f
当我尝试创建一个新项目($railsnewfirst_app)时,它在创建目录结构后出现以下错误。......createvendor/plugins/.gitkeeprunbundleinstall/home/amit/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in`require':cannotloadsuchfile--openssl(LoadError)from/home/amit/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site
我正在尝试使用bamboo-mri-1.9.2堆栈运行我的Heroku应用程序。当然,它在Ruby1.9.2上本地运行良好。但是在生产环境中,它在执行config.ru的启动过程中崩溃,如下所示:require'sinatratestapp'runSinatra::Application我的.gems文件:sinatra--version'>=1.0'应用程序本身为sinatratestapp.rb:require'rubygems'require'sinatra'get'/'do"HellofromSinatraonHeroku!"end这就是我在项目中得到的所有内容,并尝试在Her
我有我的rubyonrails应用程序,我已经在我的WindowsXP中安装了jruby-1.7.4。当我尝试运行jruby-Sbundleinstall时,它给我一个错误jruby:Nosuchfileordirectory--bundle(LoadError)我真的很纠结这个错误..请帮助.. 最佳答案 Bundler可能没有安装。您可以检查jruby-Sgemlist的输出来验证,然后安装它:jruby-Sgeminstallbundler一般来说,LoadError意味着您缺少gem依赖项。
嘿,当我尝试启动Rails服务器时出现以下错误有什么想法吗?目前没有可行的解决方案...顺便说一下,我运行的是Windows8...可能根本就是问题所在:DC:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in`require':cannotloadsuchfile--1.9/bcrypt_ext(LoadError)fromC:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.
当我尝试podinstall时,出现以下问题:Faizs-MBP:newjfaizfareed$podinstall/Library/Ruby/Site/2.0.0/rubygems/dependency.rb:315:in`to_specs':Couldnotfind'cocoapods'(>=0)among50totalgem(s)(Gem::LoadError)Checkedin'GEM_PATH=/Users/faizfareed/.gem/ruby/2.0.0:/Library/Ruby/Gems/2.0.0:/System/Library/Frameworks/Ruby.f