Mac OS X Mountain Lion “Rails is not currently installed on this system.”

后端 未结 11 1928
悲哀的现实
悲哀的现实 2021-02-01 08:42

I am on a fresh install of OS X Mountain Lion. I have installed rails via:

sudo gem install rails

Everything seems to install correctly, but wh

11条回答
  •  天命终不由人
    2021-02-01 09:36

    I think install rvm that will help you

      rvm get head && rvm reload
      rvm install 1.9.3
      rvm use 1.9.3@current --create --default 
    

    The last line creates a gem set called current.

    Now check to make sure you RubyGems was installed correctly by typing which gem in your terminal. Now update your gems.

    gem update --system 1.8.24
    

    Finally install rails.

    gem install rails -v 3.2.3
    

    I hope this works, let me know if you have any issues.

提交回复
热议问题