Installing Rails on Mac OS X 10.6 (SL)

后端 未结 5 1954
眼角桃花
眼角桃花 2021-02-11 03:52

I\'ve just gone to installed RoR on my snow leopard mac.. and found the rails gem was already installed..

is this normal? Does it need updating?

Does this get in

5条回答
  •  无人及你
    2021-02-11 04:27

    I found an incredibly well written install guide at The Pragmatic Studio called Installing Ruby 1.9 and Rails 3 on Mac OS X. It took about an hour to follow, including installing several prerequisites.

    I'm hesitant to mess too much with OSX's native installation of ruby/rails, lest things get broken by an Apple system update, so I was very excited to learn about RVM (Ruby Version Manager) which is a cool tool for switching between different ruby/rails installations. The Pragmatic Studio tutorial walks you through installing rvm.

    There are a few glitches with the guide, which I'll list here:

    • Git: I just installed git itself. You do not need to set up a github account.
    • Git: You may need to manually add /usr/local/git/bin to your PATH. (They don't explicitly tell you to)
    • RVM: The protocol for the rvm-install-head URL should be https, not http
    • RVM: The installer complained a lot, but it worked anyway.
    • RVM: The newly installed ruby 1.9.2 didn't activate until I ran 'rvm 1.9.2' in step 8

    All told, this seems like a GREAT approach, and I'm really impressed with their install guide!

提交回复
热议问题