Skip to content

Instantly share code, notes, and snippets.

@akiatoji
Last active October 13, 2015 19:07
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save akiatoji/4241705 to your computer and use it in GitHub Desktop.
Save akiatoji/4241705 to your computer and use it in GitHub Desktop.
Installing Ruby 1.9.3 on CentOS 6.3 (and Amazon Linux)
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
tar xzvf yaml-0.1.4.tar.gz
cd yaml-0.1.4
./configure --prefix=/usr/local && make
sudo make install
# Add /usr/local/lib in /etc/ld.so.conf.d/usrlocal.conf
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p286.tar.gz
tar xzvf ruby-1.9.3-p286.tar.gz
cd ruby-1.9.3-p286
./configure --prefix=/usr/local --enable-shared --disable-install-doc --with-opt-dir=/usr/local/lib && make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment