Created
September 24, 2013 23:21
-
-
Save sebglazebrook/6692707 to your computer and use it in GitHub Desktop.
Install Ruby 2 on Centos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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