【发布时间】: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
这个错误今天开始影响我的安装。我整个下午都在尝试解决这个问题,但没有成功。有谁知道发生了什么?为什么今天会发生?
【问题讨论】: