Skip to content

Instantly share code, notes, and snippets.

@nownabe
Last active August 29, 2015 14:16
Show Gist options
  • Save nownabe/4c110f4b59b7fcd69161 to your computer and use it in GitHub Desktop.
Save nownabe/4c110f4b59b7fcd69161 to your computer and use it in GitHub Desktop.
#!/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