Tengo problemas para configurar JRuby para que funcione correctamente con OpenSSL. Google ha revelado que esta es una ocurrencia bastante común, pero ninguna de las soluciones que he leído me ha funcionado. Aquí está mi configuración:JRuby OpenSSL Error
- Ubuntu 9.10
- jruby 1.5.1
- jruby-openssl (0,7)
Aquí está el 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
Curiosamente, require 'openssl'
devuelve verdadero incluso si no tengo la gema jruby-openssl instalada. De acuerdo con this link, eso no debería suceder?
Intentar cargar la gema explícitamente con require 'rubygems'
y gem 'jruby-openssl'
no ayuda.
Configuración similar para mí también. (X) ubuntu 10.04 (x64), jruby 1.4.0, jruby-openssl 0.7 –