Created
January 21, 2012 12:31
-
-
Save manuelmorales/1652650 to your computer and use it in GitHub Desktop.
Installing ruby 1.9.2 on Ubuntu 11.10 Oneiric with RVM
This file contains hidden or 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
# This is for installing RVM on your machine with all the needed development libs. | |
# You can skip this if you have RVM already working. | |
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 | |
# To install Ruby 1.9.2 | |
rvm install 1.9.2 | |
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc | |
echo "\nrvm 1.9.2" >> ~/.bashrc | |
source ~/.bashrc | |
# If RVM complains about zlib or readline, this might fix it | |
# rvm package install readline | |
# rvm package install zlib | |
# rvm reinstall 1.9.2 --with-zlib-dir=$rvm_path/usr --with-readline-dir=$rvm_path/usr | |
# To start using it and installing the gems | |
rvm 1.9.2 | |
gem update --system | |
gem install bundler | |
bundle install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment