Skip to content

Instantly share code, notes, and snippets.

@kokeiro001
Last active May 29, 2016 13:52
Show Gist options
  • Save kokeiro001/f1400047a3d217cfbb8c0268f3e68664 to your computer and use it in GitHub Desktop.
Save kokeiro001/f1400047a3d217cfbb8c0268f3e68664 to your computer and use it in GitHub Desktop.
rbenvをCentOSにインストールする
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
@kokeiro001
Copy link
Author

kokeiro001 commented May 29, 2016

rbenv install 2.1.5
rbenv local 2.1.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment