I am having problems configuring JRuby to work properly with OpenSSL. Googling has revealed that this is a pretty common occurence, but none of the solutions I've read have worked for me. Here is my setup:
- Ubuntu 9.10
- jruby 1.5.1
- jruby-openssl (0.7)
Here is the error:
irb(main):001:0> require 'jruby/openssl/gem_only'
=> true
irb(main):002:0> require 'openssl'
=> true
irb(main):003:0> OpenSSL::Digest::OPENSSL_VERSION_NUMBER
NameError: uninitialized constant OpenSSL::Digest::OPENSSL_VERSION_NUMBER
Interestingly, require 'openssl'
returns true even if I don't have the jruby-openssl gem installed. According to this link, that shouldn't happen?
Trying to load the gem explictly with require 'rubygems'
and gem 'jruby-openssl'
doesn't help.