Create a gist now

Instantly share code, notes, and snippets.

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
sudo rpm -Uvh
sudo yum install libyaml-devel
# ruby
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