Last active
May 29, 2016 13:52
-
-
Save kokeiro001/f1400047a3d217cfbb8c0268f3e68664 to your computer and use it in GitHub Desktop.
rbenvをCentOSにインストールする
This file contains 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
sudo yum install -y git gcc gcc-c++ openssl-devel readline-devel | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
exec $SHELL -l | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
sudo ~/.rbenv/plugins/ruby-build/install.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rbenv install 2.1.5
rbenv local 2.1.5