Tôi nhận được lỗi này khi chạy trình cài đặt để cài đặt đá quý của mình. Tôi đã nhìn xung quanh và tìm thấy không có giải pháp cho nó, ngoại trừ cài đặt psl openssl trên rvm và cài đặt lại tất cả các hồng ngọc, làm như vậy đã không khắc phục vấn đề, có bất kỳ giải pháp khác có thể?biểu tượng không xác định: SSLv2_method khi chạy gói cài đặt
Đây là sản phẩm tôi nhận được chạy bó cài đặt:
Fetching gem metadata from https://rubygems.org/.Unfortunately, a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/openssl.so: undefined symbol: SSLv2_method - /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/x86_64-linux/openssl.so (LoadError)
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/openssl.rb:17:in `<top (required)>'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/net/https.rb:22:in `<top (required)>'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/octavius/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/vendor/net/http/persistent.rb:447:in `ssl'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/vendor/net/http/persistent.rb:216:in `connection_for'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/vendor/net/http/persistent.rb:358:in `request'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/fetcher.rb:149:in `fetch'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/fetcher.rb:177:in `fetch_dependency_remote_specs'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/fetcher.rb:135:in `fetch_remote_specs'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/fetcher.rb:73:in `specs'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/source.rb:234:in `block in remote_specs'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/source.rb:232:in `each'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/source.rb:232:in `remote_specs'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/source.rb:165:in `fetch_specs'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/source.rb:70:in `specs'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/lazy_specification.rb:53:in `__materialize__'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/spec_set.rb:86:in `block in materialize'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/spec_set.rb:83:in `map!'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/spec_set.rb:83:in `materialize'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/definition.rb:113:in `specs'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/definition.rb:108:in `resolve_remotely!'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/installer.rb:81:in `run'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/installer.rb:14:in `install'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/cli.rb:230:in `install'
from /home/octavius/.rvm/gems/[email protected]obal/gems/bundler-1.2.1/lib/bundler/vendor/thor/task.rb:27:in `run'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/vendor/thor.rb:275:in `dispatch'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/vendor/thor/base.rb:408:in `start'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/bin/bundle:14:in `block in <top (required)>'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
from /home/octavius/.rvm/gems/[email protected]/gems/bundler-1.2.1/bin/bundle:14:in `<top (required)>'
from /home/octavius/.rvm/gems/[email protected]/bin/bundle:19:in `load'
from /home/octavius/.rvm/gems/[email protected]/bin/bundle:19:in `<main>'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125/bin/ruby_noexec_wrapper:14:in `eval'
from /home/octavius/.rvm/gems/ruby-1.9.3-p125/bin/ruby_noexec_wrapper:14:in `<main>'
Câu hỏi của bạn là quá mơ hồ. Là nó chỉ bundler cho thông báo lỗi này hoặc là nó tạo ra khi bundler cố gắng để cài đặt một trong những viên ngọc trong gemfile? I E. là lỗi đến từ một viên ngọc cụ thể đang được cài đặt, hoặc từ chính bản thân gói. Nếu đó là từ một đá quý cụ thể bắt đầu bằng cách thu hẹp đá quý nào là nguyên nhân. Bạn hiếm khi có thể giải quyết lỗi bằng cách tiếp cận shotgun. Cách tiếp cận tốt nhất luôn là thu hẹp và tập trung vấn đề. – Casper
Điều này xuất hiện lần đầu tiên trên một tìm kiếm google: http://stackoverflow.com/questions/8206546/undefined-symbol-sslv2-method/8219807#8219807. Tuy nhiên tôi vẫn sẽ bỏ phiếu để thu hẹp nguyên nhân thực sự đầu tiên. – Casper
Có, nhưng không có câu trả lời cho vấn đề về câu hỏi đó, nó giống như giải thích lý do tại sao nó xảy ra. – 8vius