使用RVM安装rails 3.0.3时出现雪豹问题

时间:2011-01-29 11:11:03

标签: ruby ruby-on-rails-3 rvm

我已经通过RVM安装了ruby。将导轨安装到ruby-1.9.2-head@rails_3_0_3并将其设置为默认使用:

monster:gems gtheys$ rvm use ruby-1.9.2-head@rails_3_0_3 --default

其他一些信息:

monster:gems gtheys$ ruby -v
ruby 1.9.2p174 (2011-01-28 revision 30696) [x86_64-darwin10.6.0]
monster:gems gtheys$ which gem
/Users/gtheys/.rvm/rubies/ruby-1.9.2-head/bin/gem
monster:gems gtheys$ rails -v
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:779:in `report_activate_error': Could not find RubyGem rails (>= 0) (Gem::LoadError)
    from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:214:in `activate'
    from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:1082:in `gem'
    from /opt/local/bin/rails:18

我需要做什么。我知道当我想使用rails时,它会转到错误的位置......

更新

我安装了gem Bundle,然后重新安装了rails 3.0.3,现在它似乎可以工作:)

monster:~ gtheys$ rails -v
Rails 3.0.3
monster:~ gtheys$ which rails
/Users/gtheys/.rvm/gems/ruby-1.9.2-head@rails_3_0_3/bin/rails
monster:~ gtheys$ 

有趣解决自己的问题:)

1 个答案:

答案 0 :(得分:0)

我安装了gem Bundle,然后重新安装了rails 3.0.3,现在它似乎可以工作:)

怪物:~gtheys $ rails -v Rails 3.0.3 怪物:~gtheys $哪个rails /Users/gtheys/.rvm/gems/ruby-1.9.2-head@rails_3_0_3/bin/rails 怪物:~gtheys $ 有趣解决自己的问题:)

感谢@tomeduarte提示