Skip to content

Instantly share code, notes, and snippets.

@jocubeit
Created January 27, 2012 13:13
Show Gist options
  • Save jocubeit/1688707 to your computer and use it in GitHub Desktop.
Save jocubeit/1688707 to your computer and use it in GitHub Desktop.
Upgrade to Ruby 1.9.3, Rails 3.2.1 using RVM
# install Ruby 1.9.3 and Rails 3.2.1:
# -----------------------------------
rvm install ruby-1.9.3-p0
rvm use ruby-1.9.3-p0 --default
gem update --system
gem update rake
gem install bundler
gem install rails
# in your project directory:
# --------------------------
bundle install
# link the new mysql2 gem to the client library:
# ----------------------------------------------
sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib ~/.rvm/gems/ruby-1.9.2-p290@global/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle
# install ruby-debug19:
# ---------------------
# download the following 2 gems to somewhere like (/volumes/code/gems/) from
# http://rubyforge.org/frs/?group_id=8883&release_id=46302:
# ---------------------------------------------------------
* linecache19 0.5.13
* ruby-debug-base19 0.11.26
# in terminal, change directory to where you downloaded them,
# execute the following statements (change path where necessary):
# ---------------------------------------------------------------
gem install linecache19-0.5.13.gem
gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=/Users/Dom/.rvm/rubies/ruby-1.9.3-p0/include/ruby-1.9.1/ruby-1.9.3-p0
gem install ruby-debug19
# run up an IRB session in terminal to test ruby-debug:
# -----------------------------------------------------
> irb
ruby-1.9.3-p0 :001 > require 'ruby-debug'
=> true
ruby-1.9.3-p0 :002 > quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment