Forked from luisbebop/install-rbenv-amazon-linux-ami.sh
Last active
December 31, 2019 20:33
-
-
Save renatovieiradesouza/0ce7491c7fbbd674716223fa6119f122 to your computer and use it in GitHub Desktop.
Install rbenv on Amazon Linux AMI
This file contains hidden or 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 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 https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build | |
rbenv install -l | |
rbenv install 2.4.1 #Or other version | |
rbenv global 2.4.1 #Or other version | |
#Install bundler | |
gem install bundler | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment