Skip to content

Instantly share code, notes, and snippets.

@jeffgca
Created January 25, 2011 22:20
Show Gist options
  • Select an option

  • Save jeffgca/795808 to your computer and use it in GitHub Desktop.

Select an option

Save jeffgca/795808 to your computer and use it in GitHub Desktop.
Getting RVM, Ruby 1.92 and Rails3 installed on my machine
# Resources:
# 1. http://amerine.net/2010/02/24/rvm-rails3-ruby-1-9-2-setup.html
# 2. http://rvm.beginrescueend.com/
# Dependencies: MacPorts, with readline and mysql5 installed
# Side note, under no circumstances should you run any of this using sudo.
# install rvm
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
# install 1.9.2
rvm install 1.9.2 -C --with-readline-dir=/opt/local,--build=x86_64-apple-darwin10
# optionally install 1.8.7, at a higher patch level than SL's latest...
rvm install 1.8.7 -C --with-readline-dir=/opt/local,--build=x86_64-apple-darwin10
# set 1.9.2 as the default:
rvm --default use 1.9.2
# create the rails gem set:
rvm use --create 1.9.2@rails3
# should see this:
#jeff@absolom ~> rvm list
#
#rvm rubies
#
# ruby-1.8.7-p330 [ x86_64 ]
#=> ruby-1.9.2-p136 [ x86_64 ]
#jeff@absolom ~> which ruby
#/Users/jeff/.rvm/rubies/ruby-1.9.2-p136/bin/ruby
# install utility belt:
gem install utility_belt
# install mysql
env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/opt/local/bin/mysql_config5
# install rails3:
gem install rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment