Forked from saegey/install rbenv and ruby-build for all users
Last active
August 18, 2023 13:14
-
-
Save remiflament/e5678e077c4d5e02e651556e221ab002 to your computer and use it in GitHub Desktop.
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
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