Semergence

Seth Ladd’s blog about Ruby on Rails and crunching data.

Installing OpenSSL Support for Ruby on Ubuntu

with 6 comments

The more I work with Ubuntu, the more I think it’s a very good desktop, but not a good development machine. For instance, you can install Ruby 1.8.4 from the package management system, but not 1.8.5 (or 1.8.6 which is now the latest). So you’re stuck compiling ruby on your own.

Usually that’s not too big of a deal. However, for some reason, the default way of compiling Ruby from source on Ubuntu leaves out the installation of OpenSSL support. I had the development openssl libraries package installed, so that wasn’t it. I didn’t see any errors in the configure process or during compilation.

Turns out, to get OpenSSL to compile and install with Ruby on Ubuntu, you need to follow these steps *after you’ve installed ruby*:

cd ruby_src_dir/ext/openssl
ruby extconf.rb
make
make install

Success!

That seems a bit harder than it should be, huh?

Written by sethladd

March 15, 2007 at 9:18 pm

Posted in Ruby, linux

6 Responses

Subscribe to comments with RSS.

  1. What would be a better distro for (web) development? I’ve tried gentoo in the past, which is probably good for getting all the latest versions, but I don’t have the time or patience to install it again.

    Keith Alexander

    March 15, 2007 at 11:30 pm

  2. a big fan of paludis myself. its a replacement for gentoo’s portage, but otherwise is compatible with all the popular repositories out there, such as gentoo itself plus all the developer and domain-specific oriented ones..

    carmen

    March 16, 2007 at 5:03 pm

  3. fyi after ruby extconf.rb

    I needed to touch one of the .o files before make would do anything. It worked after that.

    Jeff

    March 22, 2007 at 10:45 pm

  4. I also had a problem with the readline library being missing so irb wouldn’t work. I couldn’t get it to compile using these instructions. Ripped the shared library from an ubuntu machine that was working.

    Francis Fish

    December 9, 2007 at 10:33 pm

  5. sorry … the file is:

    site_ruby/1.8/i686-linux/readline.so

    Francis Fish

    December 9, 2007 at 10:34 pm

  6. [...] found a post that said that openssl wasn’t included in ubuntu by default and it could be installed [...]


Leave a Reply