Skip to content

Instantly share code, notes, and snippets.

@nukesaq88
Created February 26, 2014 04:08
Show Gist options
  • Select an option

  • Save nukesaq88/9223343 to your computer and use it in GitHub Desktop.

Select an option

Save nukesaq88/9223343 to your computer and use it in GitHub Desktop.
rbenv and ruby2.0 install memo on CentOS6
#
echo yum update
sudo yum -y update
#
echo installing curl
sudo yum -y install curl
#
echo installing vim
sudo yum -y install vim
#
echo installing git
sudo yum -y install git
#
echo installing renv
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
cd ~/.rbenv/plugins/ruby-build
sudo ./install.sh
cd ~
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
#
echo installing ruby dependencies
sudo yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel
#
echo installing ruby 2.0
rbenv install --verbose 2.0.0-p353
rbenv rehash
rbenv global 2.0.0-p353
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment