Skip to content

Instantly share code, notes, and snippets.

@frullah
Created November 8, 2020 16:53
Show Gist options
  • Save frullah/8716d40e0f4d21efcb81f0a541de233c to your computer and use it in GitHub Desktop.
Save frullah/8716d40e0f4d21efcb81f0a541de233c to your computer and use it in GitHub Desktop.
rbenv system wide install
#!/bin/bash
RBENV_GROUP=admin
# install rbenv in /usr/local/rbenv
cd /usr/local
git clone git://github.com/sstephenson/rbenv.git rbenv
chgrp -R ${RBENV_GROUP} rbenv
chmod -R g+rwxXs rbenv
# install ruby-build plugin
cd /usr/local/rbenv
mkdir plugins
cd plugins
git clone git://github.com/sstephenson/ruby-build.git
chgrp -R ${RBENV_GROUP} ruby-build
chmod -R g+rwxs ruby-build
# /etc/profile.d/rbenv.sh
export RBENV_ROOT=/usr/local/rbenv
export PATH="$RBENV_ROOT/bin:$PATH"
eval "$(rbenv init -)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment