I recently had a crash on an old PowerPC server and had to reinstall Leopard and Rails 2.3.
It is not as straight forward as one would hope – here are the steps.
- Install Leopard
- Install XCode 3.0 from the Leopard DVD
Note that the CHUD part of the XCode install consistently caused a crash on my PowerPC.
If this happens to you, Customise your XCode install, and select only options 1 and 3 (not the CHUD part)
- Install mysql from http://dev.mysql.com/downloads/mysql/5.0.html
Also install the preference pane and start mysql server.
- Activate the root user in Leopard
- Upgrade rails (Leopard ships with Rails 1.2)
4sudo gem update --system
sudo gem install rails
sudo gem update rake
sudo gem install ruby-debug
If you get error messages that ruby.h can’t be found, your XCodes install has not been successful.
- Add mysql gem
Rails 2 does not come with the mysql gem installed.
This requires a special command
On Intel Macs1sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql dir=/usr/local/mysql --with-mysql-config=`which mysql_config`
On a PowerPC1sudo env ARCHFLAGS="-arch ppc" gem install mysql -- --with-mysql dir=/usr/local/mysql --with-mysql-config=`which mysql_config`
Any comments or corrections welcome.