I was installing LibraryFind on a server at Willamette University the other day for testing purposes, and ran into something that I had never seen before. While setting up the dependencies on the test server, I found that the current version of ruby found in the distro’s YUM repository was old (1.8.5), so I decided to download and compile ruby from source. So, here’s the steps that I followed:
- Downloaded Ruby 1.8.6 (current patchset)
- Compiled Ruby (no errors)
- Downloaded Rubygems
- Ran setup…which was successful
- Using Rubygem, I tried to install Rails and this is where I ran into problems. The download starts and then throws the following error:
ERROR: While executing gem … (Gem::Exception)
SSL is not installed on this system
So, I made sure openssl and the openssl-devel packages were installed on the machine. Well, they were. After digging around on the web, I couldn’t find anything that helped — however, I did find an email message from a long time back when we were compiling ruby to work with mysql and had to compile from source. To make it work, we had to go into the ruby ext folder in the source and compile some files directly. So, I figured I’d give it a try for openssl and it worked. So, here’s the steps I followed:
- Navigate to ext/openssl in the ruby source folder.
- Once there, you run the following:
- After running the install, you can ensure that ruby can “see” the openssl information by running the following from the command-prompt:
If everything is setup right, you will see the following: =>true.