Erik A. Hanson's Weblog

Installing Ruby on Rails on Mac OS X 10.4 (Tiger)

Posted: September 7th, 2005    Tags: Howto, Ruby on Rails

I had a hell of a time getting Ruby on Rails to work on Mac OS X 10.4 (Tiger).

Here’s what ended up working for me. It’s based on the instructions on Jamie’s Blogomatic.

1. Install the XCode tools from the Tiger DVD.

2. Download and run the Ruby on Rails installer from: http://users.tpg.com.au/aarnold/Ruby%20on%20Rails.zip.

3. Download and run the MySQL installer (I used version 4.1.11): http://dev.mysql.com/downloads/index.html.

4. Start mysql: bash$ sudo /usr/local/mysql/bin/mysqld_safe

5. Put mysql into the background: ctrl-z and then bash$ bg

6. Update gems: bash$ sudo gem update

7. Install the mysql gem from the remote source: bash$ sudo gem install -r mysql — –with-mysql-dir=/usr/local/mysql

8. Compile and install the MySQL API module from here: http://www.tmtm.org/en/mysql/ruby/.

9. All done!



Leave a Reply

About Me

I'm a software developer and consultant in San Francisco. I mostly develop web apps in Javascript, Java and Rails. There's a little more about me on my LinkedIn profile.

Recent Projects

wshlst.com: a group-oriented wish list website.

BoardsConsult​/​RotationTracker: a site to help medical residents prepare for the U.S. Medical Licensing Exam, and a related site to help medical schools evaluate and track the progress of the residents in their programs.

Jobs

I moderate a few completely free jobs mailing lists with RSS feeds and zero spam: XP jobs, Rails jobs and Mac development jobs. Also, my pals at Pivotal Labs have agile Rails and Java job openings.

Plug: Web Hosting

Looking for cheap shared web hosting and/or domain registration? I've been using DreamHost for years and I've been very happy with them. They offer tons of disk space and bandwidth, one-click installation for apps like WordPress and Gallery, unlimited domains, thousands of email accounts, private domain registration, and more. They are also a nice bunch of folks, not some big dumb company.