【问题标题】:Ruby 2.1 fails to install due to OpenSSL error由于 OpenSSL 错误,Ruby 2.1 安装失败
【发布时间】:2014-05-21 00:06:25
【问题描述】:

我似乎无法在 Debian Wheezy 上安装 Ruby 2.1。每次,它都会引发 OpenSSL 错误。以下是我的安装步骤:

apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev curl git-core python-software-properties openssl

cd /root
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.0.tar.gz
tar -xvzf ruby-2.1.0.tar.gz
cd /root/ruby-2.1.0
./configure prefix=/opt/rubies/ruby-2.1.0
make && make install

& 产生的错误:

ossl_ssl.c:2232:5: error: ‘SSL_OP_MSIE_SSLV2_RSA_PADDING’ undeclared (first use in this function)
ossl_ssl.c:2232:5: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [ossl_ssl.o] Error 1
make[2]: Leaving directory `/root/ruby-2.1.0/ext/openssl'
make[1]: *** [ext/openssl/all] Error 2
make[1]: Leaving directory `/root/ruby-2.1.0'
make: *** [build-ext] Error 2

这个错误今天开始影响我的安装。我整个下午都在尝试解决这个问题,但没有成功。有谁知道发生了什么?为什么今天会发生?

【问题讨论】:

    标签: ruby openssl debian


    【解决方案1】:

    您似乎正在尝试安装 Ruby 2.1,但此问题已在 Ruby 2.1.1 及更高版本as explained here 中得到解决。

    SSL_OP_MSIE_SSLV2_RSA_PADDING 已从最新快照中删除 OpenSSL 1.0.1 的。 [修复 GH-488]

    更多details here在官方 Ruby 存储库中:

    2014 年 1 月 27 日星期一 16:45:34 山下优

    • ext/openssl/ossl_ssl.c (Init_ossl_ssl):声明一个常量 OP_MSIE_SSLV2_RSA_PADDING 仅在定义了宏时。这 SSL_OP_MSIE_SSLV2_RSA_PADDING 已从最新版本中删除 OpenSSL 1.0.1 的快照。 [修复 GH-488]

    【讨论】:

    • 干杯,伙计。正是我需要知道的。
    猜你喜欢
    • 1970-01-01
    • 2023-02-10
    • 1970-01-01
    • 2014-03-11
    • 2020-09-12
    • 2023-04-09
    • 1970-01-01
    • 1970-01-01
    • 2013-02-24
    相关资源
    最近更新 更多