Skip to content

Instantly share code, notes, and snippets.

@lukearmstrong
Last active June 19, 2017 10:11
Show Gist options
  • Save lukearmstrong/4124550 to your computer and use it in GitHub Desktop.
Save lukearmstrong/4124550 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!
@dmouse
Copy link

dmouse commented Aug 15, 2013

required on the "yum install make"

@alexdorand
Copy link

This doesn't work on red hat 7. I get compilation error! have you tried it on red hat 7?

@alexdorand
Copy link

Here is one of the errors:

ossl_pkey_ec.c:816:29: error: ‘EC_GROUP_new_curve_GF2m’ undeclared (first use in this function)
new_curve = EC_GROUP_new_curve_GF2m;

@BornToDrink
Copy link

yum install ruby
gem install sass
gem install bundler

This works for me - Centos 7

@samayo
Copy link

samayo commented Jun 20, 2016

It doesn't work on CentOs 7.1.
It goes all well until I make make

compiling ossl_x509req.c
compiling ossl_pkey_ec.c
ossl_pkey_ec.c: In function ‘ossl_ec_group_initialize’:
ossl_pkey_ec.c:761:17: warning: implicit declaration of function ‘EC_GF2m_simple_method’ [-Wimplicit-function-declaration]
                 method = EC_GF2m_simple_method();
                 ^
ossl_pkey_ec.c:761:24: warning: assignment makes pointer from integer without a cast [enabled by default]
                 method = EC_GF2m_simple_method();
                        ^
ossl_pkey_ec.c:816:29: error: ‘EC_GROUP_new_curve_GF2m’ undeclared (first use in this function)
                 new_curve = EC_GROUP_new_curve_GF2m;
                             ^
ossl_pkey_ec.c:816:29: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [ossl_pkey_ec.o] Error 1
make[2]: Leaving directory `/usr/local/src/ruby-1.9.3-p392/ext/openssl'
make[1]: *** [ext/openssl/all] Error 2
make[1]: Leaving directory `/usr/local/src/ruby-1.9.3-p392'
make: *** [build-ext] Error 2

@lzjun567
Copy link

same problem on centos7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment