缺少Rails 2.2.2宝石

时间:2012-01-31 19:15:18

标签: ruby-on-rails netbeans-6.9

我对linux比较陌生,但我正试图在Ubuntu 11.10上设置开发环境。我安装了ruby 1.8和rails 2.2.2,但netbeans似乎在告诉我其他错误。

Missing the Rails 2.2.2 gem. Please gem install -v=2.2.2 rails, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.

宝石清单

actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
activeresource (2.2.2)
activesupport (2.2.2)
rack (1.0.1)
rails (2.2.2)
rake (0.9.2.2)

gem list -d rails

rails (2.2.2)
Author: David Heinemeier Hansson
Rubyforge: http://rubyforge.org/projects/rails
Homepage: http://www.rubyonrails.org
Installed at: /usr/lib/ruby/gems/1.8

Web-application framework with template engine, control-flow layer,
and ORM.

我见过类似的问题,但我仍然无法得到任何不同的结果。

1 个答案:

答案 0 :(得分:1)

可能指向你错误的宝石家

whereis gem

http://wiki.netbeans.org/RubyGems