Problem with Leopard Ruby and OpenSSL version

I’m using Leopard version of Ruby 1.8.6 and Have OpenSSL installed via
DarwinPorts (openssl @0.9.8g_0)

However this isn’t the version my Ruby installed is using:

$ irb
irb(main):001:0> require ‘openssl’
=> true
irb(main):002:0> OpenSSL::OPENSSL_VERSION
=> “OpenSSL 0.9.7l 28 Sep 2006”
irb(main):003:0> OpenSSL::OPENSSL_VERSION_NUMBER
=> 9466063

I’ve spent the afternoon searching for any old rogue versions of
either ruby or openssl and couldn’t find any (at least none in the
path). Anybody got any ideas of what to try next?

Cheers
Chris

On Thu, Aug 13, 2009 at 9:36 AM, ctagg [email protected] wrote:

=> “OpenSSL 0.9.7l 28 Sep 2006”
irb(main):003:0> OpenSSL::OPENSSL_VERSION_NUMBER
=> 9466063

I’ve spent the afternoon searching for any old rogue versions of
either ruby or openssl and couldn’t find any (at least none in the
path). Anybody got any ideas of what to try next?

Cheers
Chris

Chris, you’re using the version of OpenSSL that’s apart of the
Mac OS 10.5 installation. You can install ruby 1.8 or 1.9 via
MacPorts and it will reference the MacPorts install of OpenSSL.

Otherwise, you’ll have to use the dynamic link editor, “dyld”, to
update the cache on your system. If you’re not familiar with this
command, just simply rebuild Ruby 1.8/1.9 via MacPorts.

Good luck,

-Conrad

Conrad
Thanks. Was afraid it might have been how the Leopard Ruby was set up.
Not familiar with dyld. Did have Ruby installed via MacPorts but
ditched it when I upgraded to Leopard. Might be time to bite the
bullet and kill two birds with one stone and install multiple versions
of ruby while I’m at it.

Cheers
Chris

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs