Getting Ruby on Rails up on Mac OS X
Here's all it took:
- Have Darwinports already installed (you know you should)
- install a reasonable version of ruby sudo port install ruby
wait a while - install MySQL (I told you we all need some grit) sudo port install mysql4
wait another while
Well, that was the plan, but the port is refusing to compile, so I have used a MacOS X mysql package - install ruby gems sudo port install rb-rubygems
- install the mysql ruby driver sudo gem install mysql -- --with-mysql-dir=/opt (or supply /usr/local/mysql if you are using the package installed mysql like me)
- install rails sudo gem install rails --include-dependencies
MacOS X has an older version of ruby installed, so make sure that your path has /opt/bin first, so that you get to use the Darwinports version first.
I thought I would *really* get into the whole Rails vibe and I started downloading the TextMate demo. But thankfully it's a sizeably package and during the download I came to my senses and kept using GNU Emacs under X11.
For the pleasure of emacs users out there, here are the ruby related portions of my .emacs (which could do with some tweaking I'm sure) can be found in my cvs repository: http://cvs.pumptheory.com/viewcvs/viewcvs.cgi/etc/ You can get the .el files from the ruby cvs repository http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/misc/
07:21 PM, 01 Feb 2006 by Mark Aufflick Permalink