Compile Ruby On Rails
Just a quick post to save someone else’s problems while compiling Rails from source…
I had to compile it from sources since the server I had to deploy the app on was an old SuSE machine for which only outdated Ruby/Rails RPMs existed…
Ruby compiled without problems, and Gem installation was very simple. — But then installing Rails with dependencies always failed with “SSL not installed on this system“.
I found the solution in “comp.lang.ruby” and it is so simple… You only have to compile OpenSSL-Ruby-Extensions (of course you need to have OpenSSL for your system, but I assume that you’ve already figured this out)!
If your Ruby-Source-Dir is /root/ruby-src/ you have to do (as root or with sudo):
cd /root/ruby-src/ext/openssl
ruby extconf.rb
make
make install
That’s all! Enjoy.









