I'm having trouble setting up JRuby to work properly with OpenSSL. Googling showed that this is a fairly common occurrence, but none of the solutions I read 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, it require 'openssl'returns true even if I don't have jruby-openssl gem installed. According to this link , this should not be?
Attempting to load the gem using require 'rubygems'and gem 'jruby-openssl'does not work.
source
share