Gemset: Rails is not currently installed on this system.

微笑、不失礼 提交于 2019-12-08 01:52:43

问题


macbook$ rvm gemset list_all

gemsets for ruby-1.9.2-p320 (found in /Users/macbook/.rvm/gems/ruby-1.9.2-p320)
   global


gemsets for ruby-1.9.3-p194 (found in /Users/macbook/.rvm/gems/ruby-1.9.3-p194)
   nice
   global     

macbook$ rvm use ruby-1.9.3-p194@nice
Using /Users/macbook/.rvm/gems/ruby-1.9.3-p194@nice with gemset global
macbook$ rails --version
Rails is not currently installed on this system. To get the latest version, simply type:

    $ sudo gem install rails

You can then rerun your "rails" command.

macbook$ sudo gem install rails
1 gem successfully installed.
macbook$ rails --version
Rails is not currently installed on this system. To get the latest version, simply type:

    $ sudo gem install rails

You can then rerun your "rails" command.

回答1:


macbook$ rvm use ruby-1.9.3-p194
Using /Users/macbook/.rvm/gems/ruby-1.9.3-p194
macbook$ rails --version
Rails 3.2.11


来源:https://stackoverflow.com/questions/14705373/gemset-rails-is-not-currently-installed-on-this-system

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!