Skip to content

Instantly share code, notes, and snippets.

@samayo
Forked from lukearmstrong/install-ruby.sh
Created June 20, 2016 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samayo/5d86a4bc1f2808f7bdb618a553903ed0 to your computer and use it in GitHub Desktop.
Save samayo/5d86a4bc1f2808f7bdb618a553903ed0 to your computer and use it in GitHub Desktop.
Install enough to get Ruby and Sass working on RHEL/CentOS
# lol redhat
su
# Install deps
yum install libyaml libyaml-devel openssl libxml2-devel bison libxslt-devel openssl-devel tcl tk libffi tcl-devel tk-devel libffi-devel
# Download Ruby
cd /usr/local/src/
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz
tar -xvzf ruby-1.9.3-p392.tar.gz
cd ruby-1.9.3-p392
# Compile Ruby from Source
./configure
make
make test
make install
ruby -v
# Install things for SASS
gem install bundler
gem install sass
gem install listen
gem install rails # well.. it was worth a try!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment