Installing Rails on Mavericks

前端 未结 4 508
青春惊慌失措
青春惊慌失措 2020-12-09 16:26

Not sure what happened but when I upgraded to Mavericks it says that Rails it not install. I executed the following command:

rails --version
相关标签:
4条回答
  • 2020-12-09 16:51

    You need to install the Command Line Developer Tools. Just open Terminal and type up a command that requires it -- for instance, git, gcc or make. Or use the following command:

    $ xcode-select --install
    

    You'll see an alert like this:

    enter image description here

    Just click Install and that's it. As of OS X 10.9, there's no longer need to install Xcode for Ruby development.

    Credit for the steps and picture goes to Daniel Kehoe in his latest guide: http://railsapps.github.io/installrubyonrails-mac.html

    0 讨论(0)
  • 2020-12-09 16:54

    I had the same problem which I have now been able to solve.

    The problem for me was that I had updated to the latest version of Xcode through the appstore but hadn't actually opened the application to complete the install. So here's what solved it for me:

    • Updated Xcode
    • Opened Xcode application
    • Accepted license agreement
    • Installed rails

    Hope it works for you too.

    0 讨论(0)
  • 2020-12-09 16:56

    I think I had the same issues. I updated the xcode and open xcode to accept licence aggrement. Then it worked fine as far as I can remember.

    0 讨论(0)
  • 2020-12-09 17:06

    It wasn't working for me even when I reinstalled xcode and the command line tools for mavericks.

    But after that, I just did a bundle update and, for some reason, it worked.

    0 讨论(0)
提交回复
热议问题