Skip to content

Instantly share code, notes, and snippets.

@mathieue
Created September 9, 2011 21:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathieue/1207374 to your computer and use it in GitHub Desktop.
Save mathieue/1207374 to your computer and use it in GitHub Desktop.
System wide RVM
sudo su
bash <<(curl -s https://rvm.beginrescueend.com/install/rvm)
apt-get install zlib1g-dev libssl-dev libreadline5-dev
rvm install 1.9.2
rvm 1.9.2
add rvm script below to your .bashrc and to /root/.bashrc
# Load RVM if it is installed,
# first try to load user install
# then try to load root install, if user install is not there.
if [ -s "$HOME/.rvm/scripts/rvm" ] ; then
. "$HOME/.rvm/scripts/rvm"
elif [ -s "/usr/local/rvm/scripts/rvm" ] ; then
. "/usr/local/rvm/scripts/rvm"
fi
set defaults via rvm use xxx –default
Re-login (or you get permisson denied on gem install).
rvmsudo xxx to use gems as sudo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment