Created
October 16, 2010 16:01
-
-
Save bartimaeus/629959 to your computer and use it in GitHub Desktop.
Installing rvm on Ubuntu
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
## Run the following from your terminal ## | |
# Get git and curl and install rvm | |
sudo aptitude install curl git-core | |
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) | |
sed -i 's/^\[/# [/' ~/.bashrc | |
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc | |
source ~/.bashrc | |
# Next, install dependencies for compiling Ruby | |
sudo apt-get install curl bison build-essential autoconf zlib1g-dev libssl-dev libxml2-dev libreadline6-dev | |
# dependencies for compiling our RubyGems gems | |
sudo aptitude install libpq-dev libmysql-ruby libmysqlclient-dev sqlite3 libsqlite3-dev libxslt-dev libxml2-dev imagemagick | |
# openssl package for RVM | |
rvm package install openssl | |
# readline package for RVM | |
rvm package install readline | |
# installing ruby | |
rvm install 1.9.2 -C --with-openssl-dir=$rvm_path/usr,--with-readline-dir=$rvm_path/usr | |
# Lastly, make rvm version your default | |
rvm use 1.9.2 --default | |
## The above procedure was developed by Mike Smullin (http://github.com/mikesmullin) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment