由于 OpenSSL 错误,Ruby 2.1 安装失败 [英] Ruby 2.1 fails to install due to OpenSSL error

查看:25
本文介绍了由于 OpenSSL 错误,Ruby 2.1 安装失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I can not seem to install Ruby 2.1 on Debian Wheezy. Every time, it throws an OpenSSL error. Here are my installation steps:

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

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

This error started affecting my installation today. I've been trying to resolve the issue all afternoon with no success. Anyone know what's going on? Why might it occur today?

推荐答案

您似乎正在尝试安装 Ruby 2.1,但这个问题在 Ruby 2.1.1 &更高的这里解释.

It seems that you are attempting to install Ruby 2.1, but this issue is solved in Ruby 2.1.1 & higher as explained here.

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

SSL_OP_MSIE_SSLV2_RSA_PADDING has been removed from latest snapshot of OpenSSL 1.0.1. [Fixes GH-488]

在官方 Ruby 存储库中进一步详细信息:

Further details here in the official Ruby repository:

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

Mon Jan 27 16:45:34 2014 Yamashita Yuu

  • 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]
  • ext/openssl/ossl_ssl.c (Init_ossl_ssl): Declare a constant OP_MSIE_SSLV2_RSA_PADDING only if the macro is defined. The SSL_OP_MSIE_SSLV2_RSA_PADDING has been removed from latest snapshot of OpenSSL 1.0.1. [Fixes GH-488]

这篇关于由于 OpenSSL 错误,Ruby 2.1 安装失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆