From: k@... Date: 2016-07-27T08:44:46+00:00 Subject: [ruby-core:76588] [Ruby trunk Bug#12630] add gem sources errors on Ruby 2.4.0-preview1 Issue #12630 has been updated by Kazuki Yamaguchi. That's weird... OpenSSL 1.0.1 doesn't have SSL_CTX_set_ecdh_auto() so it shouldn't happen. Apparently you have another installation of OpenSSL 1.0.2, and ext/openssl was compiled with its headers but linked against the system OpenSSL. Please try reinstalling libssl-dev package and recompiling Ruby. If ext/openssl is properly built with the system OpenSSL, it should print like this (OPENSSL_VERSION is the version number in the header and OPENSSL_LIBRARY_VERSION is the version number in the library itself): ~~~ $ ruby -ropenssl -e'puts OpenSSL::OPENSSL_VERSION, OpenSSL::OPENSSL_LIBRARY_VERSION' OpenSSL 1.0.1f 6 Jan 2014 OpenSSL 1.0.1f 6 Jan 2014 ~~~ ---------------------------------------- Bug #12630: add gem sources errors on Ruby 2.4.0-preview1 https://bugs.ruby-lang.org/issues/12630#change-59812 * Author: blackanger z * Status: Feedback * Priority: Normal * Assignee: openssl * ruby -v: ruby 2.4.0preview1 (2016-06-20 trunk 55466) [x86_64-linux] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- ~~~ vagrant:~$ sudo lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty vagrant:~$ ruby -v ruby 2.4.0preview1 (2016-06-20 trunk 55466) [x86_64-linux] vagrant:~$ gem sources *** CURRENT SOURCES *** vagrant:~$ gem sources -a https://mirrors.ustc.edu.cn/rubygems/ Error fetching https://mirrors.ustc.edu.cn/rubygems/: SSL_CTX_set_ecdh_auto (https://mirrors.ustc.edu.cn/rubygems/specs.4.8.gz) vagrant:~$ gem source -a https://gems.ruby-china.org Error fetching https://gems.ruby-china.org: SSL_CTX_set_ecdh_auto (https://gems.ruby-china.org/specs.4.8.gz) vagrant:~$ gem source -a https://rubygems.org/ Error fetching https://rubygems.org/: SSL_CTX_set_ecdh_auto (https://api.rubygems.org/specs.4.8.gz) ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: