raytraced

Mac OS/iOS software developer, ice hockey player, canucks fan, sharks fan, usw.

Aug 31

Updating to Ruby 1.9.2 on Snow Leopard

Rail 3 was released a few days ago.  According to the getting started guide, to develop for Rails 3, I needed to install Ruby 1.9.x onto Snow Leopard, which ships with Ruby 1.8.7.  Here are the steps that I cobbled together from google searches to replace the 1.8.7 version:

  1. curl http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p0.tar.bz2 -o ruby-1.9.2-p0.tar.bz2
  2. tar -xvzf ruby-1.9.2-p0.tar.bz2
  3. cd ruby-1.9.2-p0
  4. ./configure —prefix=/usr —enable-pthread
  5. make
  6. make test
  7. sudo make install
  8. i forget what 8 was for
  9. sudo gem install rails
  10. sudo gem install bundler

Now you should be up on the latest Ruby and Rails.

FMI http://www.ruby-lang.org/en/news/2010/08/18/ruby-1-9-2-is-released/

http://github.com/rails/rails/tree/v3.0.0

http://guides.rubyonrails.org/getting_started.html


  1. keshia-iddings reblogged this from raytraced
  2. raytraced posted this