Created
November 8, 2020 16:53
-
-
Save frullah/8716d40e0f4d21efcb81f0a541de233c to your computer and use it in GitHub Desktop.
rbenv system wide install
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
#!/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 |
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
# /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