Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save remiflament/e5678e077c4d5e02e651556e221ab002 to your computer and use it in GitHub Desktop.
Save remiflament/e5678e077c4d5e02e651556e221ab002 to your computer and use it in GitHub Desktop.
git clone https://github.com/rbenv/rbenv.git /usr/local/rbenv
git clone https://github.com/rbenv/ruby-build.git /usr/local/rbenv/plugins/ruby-build
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
rbenv install $ruby_version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment