OS X Rails Auto Installation Pak

A script to automatically download, build, and install the OS X versions of everything you need to get started with Rails. The script Dan Benjamin doesn’t want you to see!

Here’s a script to automatically download, build, and install the OS X versions of the following software:

The steps it takes mirror those explained in Hivelogic’s great post Building Ruby, Rails, Subversion, Mongrel, and MySQL on Mac OS X. If you’re of the variety that can’t easily understand the instructions in HiveLogic’s post (for some reason your humorless software-engineer–partner insists you run the Rails app on your local machine for development), or if you’re the variety that has to do this installation samba prance dance on a frequent basis, then this might come in handy for you.

The reason we wrote this script isn’t to make it easy for beginners to install everything they need (although that certainly also happens to be a good use for it), but because we found ourselves having to install all this stuff on lots of new MacBook Pros, and after the second time of doing it manually, it got tedious and a waste of time. If you already know what you’re doing, this script is meant to save you some time.

Usage

  1. Download the script:
  2. Open Terminal.
  3. Type:
    bash /directory/where/i/downloaded/the/file/install.sh

Sudo will prompt you for your administrator password after you run the script, and then blast off with a flurry of downloading and compiling. You’ll have to do some clickety-clicking to help MySQL install itself. Then sit back — you just saved 15 minutes (or 4 hours).

Notes