Install Rails on Mac OS X 10.6 (SL)

I just went to the installed RoR on my snow leopard Mac .. and found that the gem rails are already installed ..

- is that normal? Do i need an update?

Is this installed with textmate?

+2
source share
5 answers

It is installed with Snow Leopard developer tools. Version 1.8.7 Ruby is installed.

You should be fine for most of your development needs. If you want to update, just update the gems:

$ sudo gem install rubygems-update $ sudo update_rubygems $ sudo gem update $ sudo gem update --system $ sudo gem install rails 
+3
source

I found the written installation guide incredible in The Pragmatic Studio called Installing Ruby 1.9 and Rails 3 on Mac OS X. It took about an hour, including the installation of several preconditions.

I hesitate to interfere too much with my own installation of rubies / rails on OSX so as not to damage the Apple system update, so I was very happy to learn about RVM (Ruby Version Manager) , which is a great tool for switching between different ruby ​​/ rails settings . The Pragmatic Studio tutorial walks you through the installation of rvm.

There are several glitches in the manual that I will list here:

  • Git: I just installed git. 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 obviously don't tell you)
  • 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 did not activate until I completed “rvm 1.9.2” in step 8

Everyone said this seems like a great approach, and I'm really impressed with their installation guide!

+1
source

Yes, the pearl of the rails is already installed with Snow Leopard, because you installed the tools for developers, this is very normal.

But this is a little outdated, you need to update it.

TextMate did not associate RoR material with this. TextMate simply included many packages, which mainly consist of Python and Ruby scripts; if you don't have ruby, textmate will not work.

However, TextMate was originally made on Tiger 10.4, which includes Ruby 1.8.2, and Snow Leopard on Ruby 1.8.7, so TextMate packages are not fully compatible with Snow Leopard Refer to this question and fix these problems:

http://wiki.macromates.com/Troubleshooting/SnowLeopard

And also make sure you always keep your RoR kit in the latest SVN is also a good habit

0
source

TextMate is just a text editor. It only understands the Rails syntax and file structure, which makes it easy to create Rails applications. However, you still need to install Rails separately to create Rails applications.

0
source

Well for me it worked this ... I have a mountain lion, but it did a great job ...

0
source

All Articles