Installing the Rails development stack on OS X

I’ve got a bash script I put together a while back for installing the entire Ruby on Rails development stack on an intel based Mac*. I just made some updates that fully automate the process (including selection of platform specific gems).

The nice part is you get prompted for which components you want to install:

<pre> $ sudo ./rails-dev-stack-x86.sh Checking for X11... OK Checking for GCC... OK Install Ruby? y Install Ruby on Rails? y Install Mongrel? y Install FastCGI?n Install Lighttpd w. OpenSSL?n Install ImageMagick and RMagick? y Install Subversion? y Install SQLite? n Install MySQL? y Append paths to .bash_profile? y Go take a break. This is going to take a while... </pre>

Naturally, it’s largely based on the Dan Benjamin’s Guide as well as a few others noted in the script’s preamble. I use it on every machine I need to get setup on, so I try to keep it updated. I’ve been using it for a couple months now, and I thought it was time to share.

  • I think the only processor specific bit might be MySQL installation.

4 Responses to “Installing the Rails development stack on OS X”


  1. Gravatar Icon 1 K. Adam Christensen

    You know, I’m glad you posted this when you did. I had to do some spring cleaning on my laptop (read: reformat) and this got me back up to speed.

    Danke!

  2. Gravatar Icon 2 Jason

    Did you run into any bugs? Sometimes I goof the directory changes when making edits.

  3. Gravatar Icon 3 K. Adam Christensen

    Instead of ruby 1.8.6, I went with ruby 1.8.5. I didn’t use the whole thing however. I put swig ahead of subversion so that I could do a make swig-rb &amp;&amp; make install-swig-rb. I also did not run all of the steps. I am going to probably do the ImageMagick one today.

  4. Gravatar Icon 4 Jason

    I needed to rollback to 1.8.5 as well, I might put an option in there to install either. I might take you lead on swig as well, so I can install the ruby svn stuff.

Leave a Reply