Last active
August 29, 2015 14:16
-
-
Save nownabe/4c110f4b59b7fcd69161 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/bash | |
set -eux | |
sudo yum install -y gcc openssl-devel libyaml-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel | |
git clone https://github.com/riywo/anyenv ~/.anyenv | |
echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(anyenv init -)"' >> ~/.bashrc | |
source ~/.bashrc | |
mkdir ~/.anyenv/plugins | |
git clone https://github.com/znz/anyenv-update.git ~/.anyenv/plugins/anyenv-update | |
anyenv install rbenv | |
source ~/.bashrc | |
rbenv install 2.2.0 | |
rbenv global 2.2.0 | |
gem install bundler --no-ri --no-rdoc | |
rbenv rehash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment