Skip to content

Instantly share code, notes, and snippets.

@jmmaranan
Created September 22, 2017 15:17
Show Gist options
  • Save jmmaranan/887d900501842883422af3a10dad0c0c to your computer and use it in GitHub Desktop.
Save jmmaranan/887d900501842883422af3a10dad0c0c to your computer and use it in GitHub Desktop.
yum -y install 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 https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
git clone https://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
rbenv install -l
rbenv install 2.3.3
rbenv global 2.3.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment