简体   繁体   English

找不到RubyGem rails(> = 0)(Gem :: LoadError)

[英]Could not find RubyGem rails (>= 0) (Gem::LoadError)

I am creating a website using Ruby on Rails 3. I have been working on this project for 2 months and everything was working fine. 我正在使用Ruby on Rails 3创建一个网站。我已经在这个项目上工作了2个月,一切都运行良好。 Suddenly I get the following error after I added the gem 'ckeditor', '3.4.2.pre' to my gemfile. 突然,我将gem'ckeditor','3.4.2.pre'添加到我的gemfile后出现以下错误。 I followed the ckeditor tutorial here: http://hafizbadrie.wordpress.com/2011/07/31/rails-3-and-ckeditor/ and everything worked fine but since then whenever I run any command like rails server or bundle install on my console I get the following error: 我在这里遵循了ckeditor教程: http ://hafizbadrie.wordpress.com/2011/07/31/rails-3-and-ckeditor/并且一切正常但从那时起每当我运行任何命令如rails server或bundle install on我的控制台我收到以下错误:


WARNING:  Invalid .gemspec format in '/usr/lib/ruby/gems/1.8/specifications/arel-0.3.3.gemspec'
/usr/local/lib/site_ruby/1.8/rubygems.rb:777:in `report_activate_error': Could not find RubyGem rails (>= 0) (Gem::LoadError)
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:211:in `activate'
    from /usr/local/lib/site_ruby/1.8/rubygems.rb:1056:in `gem'
    from /usr/bin/rails:18

I searched on Google and got a solution saying run gem install bundler but that did not solve my error. 我在Google上搜索并得到了一个解决方案,说运行gem install bundler,但这并没有解决我的错误。 Because of this error I am not able to proceed further since not a single command is running. 由于此错误,我无法继续进行,因为没有一个命令正在运行。

How can i solve this error? 我该如何解决这个错误? thanks in advance... 提前致谢...

I guess you are using ree version 1.8.7, couple of gems does not support ree 1.8.7. 我猜你使用的是ree版本1.8.7,一对宝石不支持ree 1.8.7。 Check the version of the gem which supports ree 1.8.7 and install the corresponding version of gem. 检查支持ree 1.8.7的gem的版本并安装相应版本的gem。 In case you couldn't find the solution, drop a comment 如果您找不到解决方案,请发表评论

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Rails服务器错误:“找不到RubyGem rails(> = 0)(Gem :: LoadError)” - Rails Server Error: “Could not find RubyGem rails (>=0) (Gem:: LoadError)” Ruby on rails: - 找不到RubyGem rails(> = 0)(Gem :: LoadError) - Ruby on rails :- Could not find RubyGem rails (>= 0) (Gem::LoadError) rails 2.3.2项目:找不到RubyGem uuid(> = 0)(Gem :: LoadError) - rails 2.3.2 project: Could not find RubyGem uuid (>= 0) (Gem::LoadError) 使用RailsInstaller找不到RubyGem栏杆(> = 0)(Gem :: LoadError) - Could not find RubyGem railties (>= 0) (Gem::LoadError) with the RailsInstaller 在 [] (Gem::LoadError) 中找不到导轨 (>= 0) - Could not find rails (>= 0) amongst [] (Gem::LoadError) 使用rails 2.3.18在[](Gem :: LoadError)中找不到bundler(> = 0) - Could not find bundler (>= 0) amongst [] (Gem::LoadError) with rails 2.3.18 /Library/Ruby/Site/1.8/rubygems.rb:779:in `report_activate_error': 找不到 RubyGem heroku (>= 0) (Gem::LoadError) - /Library/Ruby/Site/1.8/rubygems.rb:779:in `report_activate_error': Could not find RubyGem heroku (>= 0) (Gem::LoadError) 找不到RubyGem rails-Rails Server错误 - Could not find RubyGem rails - Rails Server error Rails 2.3.8:找不到RubyGem捆绑程序 - Rails 2.3.8: Could not find RubyGem bundler LoadError: 无法加载 'listen' gem (Rails 6) - LoadError: Could not load the 'listen' gem (Rails 6)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM