Posted by casey at January 3rd, 2007

Here are the steps I took to get Rails running on a fresh MacBook Pro.
Start by following
http://blog.nanorails.com/articles/2006/10/17/installing-rails-on-mac-os-x-tiger-10-4-8

The big things to keep an eye out for
Don’t forget to update the Darwin ports sudo port -d selfupdate very very important

Don’t forget the +server portion of the mysql5 install

I typically use mongrel and mongrel cluster so I don’t bother with the fcgi crap.

I also found out that the Darwin Port rb-rubygems is broken in the latest release and you will see a strange stack looking like this when you do sudo gem install blah

DCHMacBook:~/dev/project/trunk someuser$ sudo gem install fastercsv
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’: no such file to load — sources (LoadError)
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in `require’
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/remote_installer.rb:462:in `sources’
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/remote_installer.rb:472:in `source_index_hash’
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/remote_installer.rb:436:in `install’
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_commands.rb:258:in `execute’
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_commands.rb:220:in `each’
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_commands.rb:220:in `execute’
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/command.rb:69:in `invoke’
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/cmd_manager.rb:117:in `process_args’
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/cmd_manager.rb:88:in `run’
from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_runner.rb:29:in `run’
from /opt/local/bin/gem:23

No worries, just manually reinstall ruby gems. In my case

wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz
extract and sudo ruby setup.rb.

That is really about it… The next big part is ImageMagic/RMagick — I’ll add updates as I work through that mess.