Monday, June 20, 2011

Install ruby using RVM

This is note to self, for installing ruby 1.8.7 using RVM. Other versions can be installed in same way "mostly". Just replace the version 1.8.7 with version intended

Verbose documentation about RVM installtion can be found at https://rvm.beginrescueend.com/rvm/install/

bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >>

add above line in ~/.bashrc file in the end

rvm package install zlib
rvm package install openssl
rvm install 1.8.7--with-openssl-dir=$HOME/.rvm/usr
rvm use 1.8.7 --default

zlib and openssl is required in many cases.

0 comments:

Post a Comment