Skip to content

Instantly share code, notes, and snippets.

@denispeplin
Created February 22, 2013 09:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save denispeplin/5011950 to your computer and use it in GitHub Desktop.
CentOS Ruby
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment