Skip to content

Instantly share code, notes, and snippets.

@sebglazebrook
Created September 24, 2013 23:21
Show Gist options
  • Select an option

  • Save sebglazebrook/6692707 to your computer and use it in GitHub Desktop.

Select an option

Save sebglazebrook/6692707 to your computer and use it in GitHub Desktop.
Install Ruby 2 on Centos
# be root :-)
sudo su -
cd /tmp
# remove existing
yum -y remove ruby
# install dependencies
yum -y groupinstall 'Development Tools'
yum -y groupinstall development-libs
yum -y install libffi-devel
yum -y install libyaml-devel
yum -y install openssl-devel
yum -y update
# get ya Ruby
wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p195.tar.gz
tar xzvf ruby-2.0.0-p195.tar.gz
cd ruby-2.0.0-p195
./configure
make
make install
make clean
gem update –system
# be not root :-)
exit
ruby --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment