Install rails on MacOS X Leopard

Install XCode 3.0 (From the Leopard Install Disc - find it under optional installs)
During the install, after choosing destination disk click the "customize" button and select the 10.3.9 SDK optional install

* Ruby
curl -O ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.6-p230.tar.gz
tar xzvf ruby-1.8.6-p230.tar.gz
cd ruby-1.8.6-p230
./configure --enable-shared --enable-pthread CFLAGS=-D_XOPEN_SOURCE=1
make
sudo make install
cd ..
which ruby
* Ruby Gems
curl -O http://files.rubyforge.mmmultiworks.com/rubygems/rubygems-1.2.0.tgz
tar xzvf rubygems-1.2.0.tgz 
cd rubygems-1.2.0
sudo /usr/local/bin/ruby setup.rb
* Rails
sudo gem update --system
sudo gem install rails
* FreeImage
Download - http://freeimage.sourceforge.net/download.html
cd ~/Downloads/FreeImage/
cat README.osx

You will see instructions on changes you need to make to the file Makefile.osx.  Make those changes.

make 
sudo make install
* ImageScience
sudo gem install RubyInline
sudo gem install image_science

Also available in: HTML TXT