[ruby-core:76588] [Ruby trunk Bug#12630] add gem sources errors on Ruby 2.4.0-preview1

From: k@...
Date: 2016-07-27 08:44:46 UTC
List: ruby-core #76588
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: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next