public
Created

CentOS Ruby

  • Download Gist
commands
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
# build esseintails
yum -y install gcc gcc-c++ kernel-devel
 
# make tools
yum -y install gcc automake autoconf libtool make
 
# ruby related stuff
yum -y install libxslt-devel libxml2-devel gdbm-devel libffi-devel zlib-devel openssl-devel readline-devel curl-devel openssl-devel pcre-devel git memcached-devel postgresql-devel ImageMagick-devel ImageMagick
 
# libyaml-devel
cd /usr/local/src
curl -O http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/atomic-release-1.0-16.el6.art.noarch.rpm
sudo rpm -Uvh atomic-release-1.0-16.el6.art.noarch.rpm
sudo yum install libyaml-devel
 
# ruby
version=1.9.3-p385
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-$version.tar.gz
tar zxvf ruby-$version.tar.gz
cd ruby-$version
./configure && make && make install
 
# check versions
ruby -v
gem --version

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.