« Podcasting attracts Venture Capital | Main | Windows on the PSP »
August 12, 2005
Ruby On Rails on Mac OS X
I have just spent some "interesting" hours trying to get Ruby On Rails running on my Mac OS X Tiger version. After a seemingly painless install I couldn't get Rails to connect up to the database and just kept getting the "No Database selected" error. The answer seems to be the one described here in the last comment.
Tried all the above advice without success. However, got it running by getting mysql-ruby-2.6.3 from tmtm.org GCC must be set to 4.0 and you must use ‘extconf.rb—with-mysql-dir=/whereever/mysql/lives’
So after downloading the 2.6.3 version of mysql-ruby it was:
sudo gcc_select 4.0 (I had to install XCode 2 for that)
sudo ruby extconf.rb --with-mysql-dir=/usr/local/mysql
sudo make install
After which RoR was happy. And so am I!
Posted by Matthew at August 12, 2005 10:24 PM