LibraryFind installation: dealing with problems relating to openssl and rubygems

By reeset / On / In ruby

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:

  1. Downloaded Ruby 1.8.6 (current patchset)
  2. Compiled Ruby (no errors)
  3. Downloaded Rubygems
  4. Ran setup…which was successful
  5. 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:

  1. Navigate to ext/openssl in the ruby source folder.
  2. Once there, you run the following:
  3. ruby extconf.rb
    make install

  4. After running the install, you can ensure that ruby can “see” the openssl information by running the following from the command-prompt:
    >>require ‘openssl’
    If everything is setup right, you will see the following: =>true.



3 thoughts on “LibraryFind installation: dealing with problems relating to openssl and rubygems

  1. thnx alot about this explain but there is proplem while executing the file extconf.rb
    this message are appear to me :
    === OpenSSL for Ruby configurator ===
    === Checking for system dependent stuff… ===
    checking for t_open() in -lnsl… no
    checking for socket() in -lsocket… no
    checking for assert.h… yes
    === Checking for required stuff… ===
    checking for openssl/ssl.h… no
    === Checking for required stuff failed. ===
    Makefile wasn’t created. Fix the errors above.
    ,and iam using linux (Ubuntu Distro) and the path that the file openssl located is : /usr/bin/openssl
    in the latest version from it’s site .
    so how can i slove this proplem ????

  2. I was just fronted with the same problem. This solution is to install openssl-devel package. This is if you are on a Redhat based distribution. This package will install the header files you need.