Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save assafshomer/c77d567511ae5eb675e5ad9537c4b856 to your computer and use it in GitHub Desktop.
Save assafshomer/c77d567511ae5eb675e5ad9537c4b856 to your computer and use it in GitHub Desktop.
Install rbenv on Amazon Linux AMI
sudo yum install -y git gcc make readline-devel openssl-devel
git clone git://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
# Install ruby-build system-widely
git clone git://github.com/rbenv/ruby-build.git /tmp/ruby-build
cd /tmp/ruby-build
sudo ./install.sh
rbenv install 2.5.1 && rbenv global 2.5.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment