[ruby-dev:45242] [ruby-trunk - Bug #5786] LoadError: cannot load such file -- openssl

From: Kazuhiro NISHIYAMA <redmine@...>
Date: 2012-02-14 02:20:52 UTC
List: ruby-dev #45242
Issue #5786 has been updated by Kazuhiro NISHIYAMA.


r34555 で関連する修正が入っていますが、'autoload :OpenSSL, "openssl"; p defined?(OpenSSL) は "constant" のままのようなので、 r34421 で入れた対処は revert せずにそのままにしておきます。
----------------------------------------
Bug #5786: LoadError: cannot load such file -- openssl
https://bugs.ruby-lang.org/issues/5786

Author: Kazuhiro NISHIYAMA
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-02-03 trunk 34424) [x86_64-linux]


openssl がビルドされていないと test-all で LoadError: cannot load such file -- openssl になっていくつかエラーになります。
途中で Ctrl+C で止めてしまっているのでもっと出るのかもしれません。

test_cgi_session_filestore(CGISessionTest):
LoadError: cannot load such file -- openssl
    .../ruby/lib/securerandom.rb:59:in `random_bytes'
    .../ruby/lib/securerandom.rb:140:in `hex'
    .../ruby/lib/cgi/session.rb:173:in `create_new_id'
    .../ruby/lib/cgi/session.rb:267:in `initialize'
    .../ruby/test/cgi/test_cgi_session.rb:33:in `new'
    .../ruby/test/cgi/test_cgi_session.rb:33:in `test_cgi_session_filestore'

  2) Error:
test_cgi_session_pstore(CGISessionTest):
LoadError: cannot load such file -- openssl
    .../ruby/lib/securerandom.rb:59:in `random_bytes'
    .../ruby/lib/securerandom.rb:140:in `hex'
    .../ruby/lib/cgi/session.rb:173:in `create_new_id'
    .../ruby/lib/cgi/session.rb:267:in `initialize'
    .../ruby/test/cgi/test_cgi_session.rb:71:in `new'
    .../ruby/test/cgi/test_cgi_session.rb:71:in `test_cgi_session_pstore'

  3) Error:
test_cgi_session_specify_session_key(CGISessionTest):
LoadError: cannot load such file -- openssl
    .../ruby/lib/securerandom.rb:59:in `random_bytes'
    .../ruby/lib/securerandom.rb:140:in `hex'
    .../ruby/lib/cgi/session.rb:173:in `create_new_id'
    .../ruby/lib/cgi/session.rb:267:in `initialize'
    .../ruby/test/cgi/test_cgi_session.rb:148:in `new'
    .../ruby/test/cgi/test_cgi_session.rb:148:in `test_cgi_session_specify_session_key'

  4) Error:
test_https_proxy_authentication(HTTPSProxyTest):
LoadError: cannot load such file -- openssl
    .../ruby/test/net/http/test_https_proxy.rb:16:in `block (2 levels) in test_https_proxy_authentication'

  5) Error:
test_ssl_socket_close_on_post_connection_check_fail(Net::TestSSLSocket):
LoadError: cannot load such file -- openssl
    .../ruby/lib/net/smtp.rb:197:in `default_ssl_context'
    .../ruby/lib/net/smtp.rb:345:in `enable_starttls_auto'
    .../ruby/test/net/smtp/test_ssl_socket.rb:51:in `test_ssl_socket_close_on_post_connection_check_fail'

  6) Error:
test_ssl_socket_open_on_post_connection_check_success(Net::TestSSLSocket):
LoadError: cannot load such file -- openssl
    .../ruby/lib/net/smtp.rb:197:in `default_ssl_context'
    .../ruby/lib/net/smtp.rb:345:in `enable_starttls_auto'
    .../ruby/test/net/smtp/test_ssl_socket.rb:67:in `test_ssl_socket_open_on_post_connection_check_success'


-- 
http://bugs.ruby-lang.org/

In This Thread

Prev Next