【问题标题】:Missing the Rails 2.2.2 gem缺少 Rails 2.2.2 gem
【发布时间】:2012-01-31 19:15:17
【问题描述】:

我对 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)

宝石列表 -d 导轨

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.

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

【问题讨论】:

    标签: ruby-on-rails netbeans-6.9


    【解决方案1】:

    可能指向您错误的宝石主页

    whereis gem
    

    http://wiki.netbeans.org/RubyGems

    【讨论】:

    • 感谢您的链接。我的问题解决了。 Netbeans 指向错误的 ruby​​ 平台。通过转到工具 > Ruby Gems 解决了这个问题
    • 还想看看另一个 IDE。 Netbeans 放弃了对 Ruby 的支持。我已经搬到 Rubymine
    猜你喜欢
    • 1970-01-01
    • 2011-04-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-29
    • 2011-03-04
    相关资源
    最近更新 更多