I wanted to setup a Ruby development environment on my new Mac Pro (just for kicks!) and did so using a mashup of the resources below:
- Ruby on Rails 3 Tutorial: Learn Rails by Example (Addison-Wesley Professional Ruby)
- and The Cucumber Book (you’ll need to buy this one)
I’ve documented the steps followed below, mainly for my benefit though others may also find them useful. I’m running OSX 10.6.8. update rubygems to latest version
$ sudo gem update –system  create .profile and add PATH env variable settings
export PATH=$HOME/.gem/ruby/1.8/bin:$PATH  install RVM (git installed with RVM by default).
https://rvm.beginrescueend.com/rvm/install/  install ruby.
$ rvm install 1.8.7 [4.1] lose the redundant documentation by creating a .gemrc file in home with following content:
gem: –no-ri –no-rdoc  while waiting for 4, create a gemfile in home dir using below settings below:
# Build stuff
# General stuff
# Rails stuff
# Non Rails stuff
$ sudo gem install bundler  install various other gems including cucumber & rails using the file created in 5.
$ sudo bundle install  Installing Homebrew makes the MySQL install much easier.
$ homebrew install mysql  follow the Homebrew mysql instructions to finish up. I had some additional issues too which were resolved here – http://stackoverflow.com/questions/4359131/brew-install-mysql-on-mac-os
$ mysql.server start
$ mysql -u root -p
All good. Now to get cracking on my web app!Thanks for reading. Feel free to reach out via a comment or on the socials if anything resonates.