« No more playtime for Colin! | Main | $0.49 Book-ends »

July 30, 2005

Installing Ruby on Rails on Mac OS X Tiger

The easier this information is to find, the better -- it's a subject that comes up over and over when talking to people getting into [Ruby on Rails][1] development. There are two barriers to easy deployment of Ruby on Rails for Mac OS X 10.4 users: 1. Tiger ships with a broken Ruby configuration that keeps compiled RubyGems from building properly. 2. MySQL issues. 1. The [MySQL.com][2] installer installs in /usr/local/mysql. The gem won't find those files by default. 2. The MySQL gem won't compile under GCC 4.0, which is the default system compiler. The first one's easy to fix: > sudo gem install fixrbconfig; sudo fixrbconfig As is the second one. > sudo gcc\_select 3.3 > > sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql > > sudo gcc\_select 4.0 *Et voila*, a working MySQL driver for all your RoR development needs. [1]:http://www.rubyonrails.com [2]:http://www.mysql.com

Posted by Colin at July 30, 2005 3:20 PM

Trackback Pings

TrackBack URL for this entry:


Post a comment

Remember Me?

(you may use HTML tags for style)