Best practice installing Ruby and Rails on Snow Leopard?

I am creating a new Macbook as a rail development machine. So far, I have always installed Ruby, MySQL, etc. Through MacPorts, because I do not want to depend on the system version of ruby. But with things like Homebrew and rvm (missing a link due to spam prevention), is there a better recommended way to configure ruby ​​for rails on OS X?

+5
source share
6 answers

I don't know about best practice, but Dan Benjamin's instructions at Hivelogic did a great job for me on Snow Leopard:

/usr/local

+4

gem update rails

Rails Snow Leopard. : http://rubyonrails.org/download

MySQL . Snow Leopard - 32 64 . http://mysql.com, gem mysql.

+1
gem update rails

... Ruby

0

MacPorts.

, . http://gist.github.com/191020

Git, Subversion, Mercurial, ImageMagick .

0

"Enterprise" Ruby.

0

, . . gem Rails .., MySQL , gem MySQL. , 64- MySQL, :

sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

( , Git) MacPorts. , , ImageMagick , Snow Leopard, . , Homebrew. , , , .

Last but not least, I came to rvm to easily install and switch between multiple versions of Ruby. This allows me to use 1.8.7 for my applications, 1.8.6 for client applications that require it, 1.9 or JRuby if I want to play with it, etc. Highly recommended!

0
source

All Articles