What ruby/rails componet do I need?

Your real question is "How do I get OpenSSL on my system?" The Pickaxe points to http://www.openssl.org/ but I don't know if that's any help.

If you happen to be wondering about a Debian system, then this script:   Parked at Loopia may give you some clues. (And even if you're not concerned with Debian, the blog post

likely helps more.)

-Rob

Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com

Well, you still haven't said what that system *is* so you can't expect to get specific answers. Until you can do this: $ irb irb(main):001:0> require 'openssl' => true

You're not going to get SSL in Ruby. Did the blog post help at all?

I got source from http://www.openssl.org/source/openssl-0.9.8d.tar.gz as recently as 22-May-2007 and ruby was built from source after configuring like this:

./configure --prefix=${PREFIX} --with-static-linked-ext \      --with-iconv-dir=${PREFIX} --with-openssl-dir=${PREFIX} --with-readline-dir=${PREFIX} \      && make && make test && make install

This information was in Mike Mondragon's blog post.

-Rob

Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com

Well, I don't know CentOS enough, but your two options are (1) getting a new (or additional) package for ruby that has (or adds) the openssl or (2) building ruby from source and telling it where to find the openssl library. It could be as simple as ruby being originally installed before OpenSSL was present.

You'll have to figure out which is the better route for your system. (If you have root access to the machine, building from source is a good choice.)

-Rob

Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com

Actually I think Ruby on Centos 4.x is too old and/or broken. I had this same problem when trying to install Capistrano (I got errors installing gems). I think CentOS has ruby 1.8.1. I tried searching for related Ruby packages with yum (I figured it that there some package that was missing), but I couldn't find anything.

So I uninstalled all the ruby packages and built ruby 1.8.6 from source (very easy). After that, you can verify that it was built with openssl support. Then rubygems installed without any errors and I could proceed with getting Capistrano.