Skip to content

Instantly share code, notes, and snippets.

@manuelmorales
Created January 17, 2012 21:15
Show Gist options
  • Save manuelmorales/1628919 to your computer and use it in GitHub Desktop.
Save manuelmorales/1628919 to your computer and use it in GitHub Desktop.
Installing ruby 1.8.7 on Ubuntu 11.10 Oneiric with RVM
sudo apt-get install curl git-core ruby zlib1g-dev libxml2-dev mysql-client libsqlite3-dev libmysql-ruby libmysqlclient-dev libssl-dev libxslt-dev libreadline-dev zlib1g-dev
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
source ~/.bashrc
rvm install 1.8.7
# Optionally you can do this instead of installing the Ubuntu package for zlib and readline
# rvm package install readline
# rvm package install zlib
# rvm install 1.8.7 --with-zlib-dir=$rvm_path/usr --with-readline-dir=$rvm_path/usr
rvm 1.8.7
gem install bundler
bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment