Skip to content

Instantly share code, notes, and snippets.

@AlexKMDev
Last active August 29, 2015 14:05
Show Gist options
  • Save AlexKMDev/7ea7ce8bd8768d2d0cab to your computer and use it in GitHub Desktop.
Save AlexKMDev/7ea7ce8bd8768d2d0cab to your computer and use it in GitHub Desktop.
rbenv system wide install on linux
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