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
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 Gemscurl -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
* Railssudo gem update --system
sudo gem install rails
- MySQL
Follow install instructions here: http://hivelogic.com/narrative/articles/installing-mysql-on-mac-os-x
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
* ImageSciencesudo gem install RubyInline
sudo gem install image_science