Y
yf kuanfai
Hi,
Anybody can help me on this error:
/usr/local/lib/ruby/1.8/openssl/digest.rb:55:in `initialize':
Unsupported digest algorithm (sha256). (RuntimeError)
from /usr/local/lib/ruby/1.8/openssl/digest.rb:55:in
`initialize'
from
/export/home/prjer/er/app/controllers/register_controller.rb:7:in `new'
from
/export/home/prjer/er/app/controllers/register_controller.rb:7
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
but i can run the command:
$ ruby -ropenssl -e 'p OpenSSL:igest:igest.new("sha256")'
#<OpenSSL:igest:igest:
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>
$ ruby -e "puts require('openssl')"
true
from other's post, i also get this:
$ gem search openSSL -r
*** REMOTE GEMS ***
jruby-openssl (0.7.2)
JRuby-OpenSSL (0.1)
openssl-extensions (1.0.0)
openssl-nonblock (0.2.1)
pftg-jruby-openssl (0.5.3)
ruby-hmac-openssl (0.1.0)
tem_openssl (0.3.6)
Appreciate the help in advance.
Anybody can help me on this error:
/usr/local/lib/ruby/1.8/openssl/digest.rb:55:in `initialize':
Unsupported digest algorithm (sha256). (RuntimeError)
from /usr/local/lib/ruby/1.8/openssl/digest.rb:55:in
`initialize'
from
/export/home/prjer/er/app/controllers/register_controller.rb:7:in `new'
from
/export/home/prjer/er/app/controllers/register_controller.rb:7
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
but i can run the command:
$ ruby -ropenssl -e 'p OpenSSL:igest:igest.new("sha256")'
#<OpenSSL:igest:igest:
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855>
$ ruby -e "puts require('openssl')"
true
from other's post, i also get this:
$ gem search openSSL -r
*** REMOTE GEMS ***
jruby-openssl (0.7.2)
JRuby-OpenSSL (0.1)
openssl-extensions (1.0.0)
openssl-nonblock (0.2.1)
pftg-jruby-openssl (0.5.3)
ruby-hmac-openssl (0.1.0)
tem_openssl (0.3.6)
Appreciate the help in advance.