Created
September 9, 2011 21:23
-
-
Save mathieue/1207374 to your computer and use it in GitHub Desktop.
System wide 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
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