An Easier way to install Ruby on Rails on MacOS

Yep, I’m going to do some Rails stuff on this new MacBook Pro. More posts on that later — maybe after I learn a few things.

This page explains how to install it on Tiger by downloading and compiling everything manually. I already had DarwinPorts installed so I decided to use that instead. It really came down to just a few simple commands:

sudo port install rb-rubygems # this installs Ruby too, of course.
sudo gem install install rails --include-dependencies
sudo port install rb-rubyfcgi # Ruby's FastCGI module, also installed FastCGI
sudo port install lighttd
## install MySQL using the official packages
sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql

This was much easier than doing the “download; ./configure, make install” dance over and over and over again.

One Response to “An Easier way to install Ruby on Rails on MacOS”

  1. Where Are The Wise Men? » Blog Archive » My Favorite OSX Apps of 2006 Says:

    [...] MacPorts—This is the project formerly known as DarwinPorts.  Are you missing your favorite Unix tool?  Then install MacPorts and type sudo port install app_name and you are off to the races.  Using MacPorts makes install Ruby on Rails dead simple. [...]

Leave a Reply

You must be logged in to post a comment.