The 10.4.9 version of OS X includes ruby 1.8.1-1, and readline 5.0. The latest version of ruby is 1.8.6. You can follow the excellent instructions on maconrails.com I had to make a few minor adjustments to get it to work on my system.
- Install xcode for C development. At least you’ll need to install these packages:
gcc4.0.pkg,DevSDK.pkg,BSDSDK.pkg, andX11SDK.pkg - The
readlinethat is included in OS X is recent enough. - Create .bash_profile file and modify the PATH environment variable.
export PATH="/usr/local/bin:/usr/local/mysql/bin:/usr/local/sbin:$PATH"
- Get the latest version of Ruby and Gem. Copy their folders into
/usr/local/src. Now build & install it on your system:
$ cd /usr/local/src/ruby-1.8.6
$ source ~/.bash_profile
$ ./configure --prefix=/usr/local --enable-pthread
$ make
$ sudo make install
$ sudo make install-doc
$ cd ../rubygems-0.9.4
$ sudo ruby setup.rb
$ sudo gem update --system
$ sudo gem install rails --include-dependencies
May 28, 2007 at 6:26 pm |
I just did the same using MacPorts via:
$ sudo port -d -v install ruby rb-rails
May 28, 2007 at 6:30 pm |
You’ve convinced me to try MacPorts
I tried macports to install ruby & rails. But looks like you’ll need to install/update rails using gem. Where you able to install/upgrade to rails version 1.2.3 with macports?