Created
January 27, 2012 13:13
-
-
Save jocubeit/1688707 to your computer and use it in GitHub Desktop.
Upgrade to Ruby 1.9.3, Rails 3.2.1 using RVM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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