Skip to content

Instantly share code, notes, and snippets.

@mfo
Created March 6, 2011 13:22
Show Gist options
  • Save mfo/857283 to your computer and use it in GitHub Desktop.
Save mfo/857283 to your computer and use it in GitHub Desktop.
RVM + gemset with a ruby-1.9.2... crappy with ubuntu...
# setup rvm gemset
sudo rvm install ruby-1.9.2-p136
sudo rvm use ruby-1.9.2-p136@my_gemset --create
# setup apt repo and download needed lib in order to compile ruby1.9.2
sudo add-apt-repository ppa:ubuntu-on-rails/ppa
sudo apt-get update
sudo apt-get install libopenssl-ruby1.9.2 libxslt-dev libxml2-dev sqlite3 libsqlite3-dev
# extract package with rvm in the gemset
rvm package install zlib
rvm package install readline
rvm package install openssl
# cleanup old ruby
rvm remove ruby-1.9.2-p136
# compile this mess
rvm install ruby-1.9.2-p136 --with-zlib-dir=$rvm_path/usr/ --with-readline-dir=$rvm_path/usr --with-openssl-dir=$rvm_path/usr/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment