Tuesday, May 24, 2005

Ruby on rails trials on OS X

Finally sitting down play with rails on OS X. I had previously built Ruby 1.8.2 from source and installed into /usr/bin on top of OS X's default ruby -- seemed to work fine. Now, just upgraded to Tiger last weekend, got as far as creating a new rails model, when I got a nifty little error:

Access denied for user: 'root@localhost' (Using password: YES)

Seems that Tiger broke ruby for more folks than just me.

Whiz-bang-crash, several packages later...

  • fix-ruby-tiger.sh from above
  • download, build and install fastcgi
  • download and install MySQL 4.1.12 from an OSX binary package
  • download, build and install mod_fastcgi (apxs works!)
  • install mysql gem (gem install mysql -- --with-mysql-include=/usr/local/mysql/include --with-mysql-lib=/usr/local/mysql/lib)

So far, so good, but haven't reached the kicker yet...what amazes me though through this whole process is how transparent it all is. It's happening on a Mac, but it's all good ol' FOSS that configure && make && make install's as good as on any other box (except XP :).

10:35:58 PM      comment []  trackback []