Skip to content

Instantly share code, notes, and snippets.

@owainlewis
Last active August 1, 2019 19:40
Show Gist options
  • Save owainlewis/cf40d0e55108beb17c5293a4e68f8c91 to your computer and use it in GitHub Desktop.
Save owainlewis/cf40d0e55108beb17c5293a4e68f8c91 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
sudo yum install -y git-core zlib zlib-devel gcc-c++ patch readline readline-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison curl sqlite-devel
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment