Last active
August 29, 2015 14:05
-
-
Save AlexKMDev/7ea7ce8bd8768d2d0cab to your computer and use it in GitHub Desktop.
rbenv system wide install on linux
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
git clone https://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
echo '# rbenv setup' > /etc/profile.d/rbenv.sh | |
echo 'export RBENV_ROOT=/usr/local/rbenv' >> /etc/profile.d/rbenv.sh | |
echo 'export PATH="$RBENV_ROOT/bin:$PATH"' >> /etc/profile.d/rbenv.sh | |
echo 'eval "$(rbenv init -)"' >> /etc/profile.d/rbenv.sh | |
chmod +x /etc/profile.d/rbenv.sh | |
source /etc/profile.d/rbenv.sh | |
mkdir -p $RBENV_ROOT/plugins | |
pushd $RBENV_ROOT/plugins | |
git clone https://github.com/sstephenson/ruby-build.git | |
git clone https://github.com/rkh/rbenv-update.git | |
rbenv rehash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment