Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryush00/150a16705cfca48bc001c08f69968541 to your computer and use it in GitHub Desktop.
Save ryush00/150a16705cfca48bc001c08f69968541 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 https://github.com/rbenv/rbenv ~/.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 /tmp/ruby-build
cd /tmp/ruby-build
sudo ./install.sh
rbenv install 2.7.2 && rbenv global 2.7.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment