Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
rbenv:在UBUNTU 14.04(x86_64)上安装Ruby 2.2.3时构建失败_Ruby_Openssl_Ubuntu 14.04_Rbenv - Fatal编程技术网

rbenv:在UBUNTU 14.04(x86_64)上安装Ruby 2.2.3时构建失败

rbenv:在UBUNTU 14.04(x86_64)上安装Ruby 2.2.3时构建失败,ruby,openssl,ubuntu-14.04,rbenv,Ruby,Openssl,Ubuntu 14.04,Rbenv,我正在尝试安装ruby 2.2.3,之前我已经安装了ruby 2.2.2 rbenv versions system * 2.2.2 (set by /home/emen/.ruby-version) jruby-1.7.20 jruby-9.0.0.0.pre2Build 我在尝试安装Ruby 2.2.3时遇到一个问题,生成失败如下: rbenv install 2.2.3 Downloading ruby-2.2.3.tar.bz2... -> https://cache.r

我正在尝试安装ruby 2.2.3,之前我已经安装了ruby 2.2.2

rbenv versions
system  
* 2.2.2 (set by /home/emen/.ruby-version)
jruby-1.7.20
jruby-9.0.0.0.pre2Build
我在尝试安装Ruby 2.2.3时遇到一个问题,生成失败如下:

rbenv install 2.2.3  
Downloading ruby-2.2.3.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.3.tar.bz2 Installing ruby-2.2.3...

BUILD FAILED (Ubuntu 14.04 using ruby-build 20160111-27-g06f1254)

Inspect or clean up the working tree at /tmp/ruby-build.20160127112741.26444 Results logged to /tmp/ruby-build.20160127112741.26444.log
我已经检查了日志,只是复制了嫌疑犯的一部分,因为另一个检查和编译过程很好:

linking shared-object objspace.so
make[2]: Leaving directory `/tmp/ruby-build.20160127112741.26444/ruby-2.2.3/ext/objspace'
compiling ossl_ssl.c
make[2]: Entering directory `/tmp/ruby-build.20160127112741.26444/ruby-2.2.3/ext/pathname'
compiling pathname.c
ossl_ssl.c:141:27: error: ‘SSLv3_method’ undeclared here (not in a function)
     OSSL_SSL_METHOD_ENTRY(SSLv3),
                           ^
ossl_ssl.c:119:69: note: in definition of macro ‘OSSL_SSL_METHOD_ENTRY’
 #define OSSL_SSL_METHOD_ENTRY(name) { #name, (SSL_METHOD *(*)(void))name##_method }
                                                                     ^
ossl_ssl.c:142:27: error: ‘SSLv3_server_method’ undeclared here (not in a function)
     OSSL_SSL_METHOD_ENTRY(SSLv3_server),
                           ^
ossl_ssl.c:119:69: note: in definition of macro ‘OSSL_SSL_METHOD_ENTRY’
 #define OSSL_SSL_METHOD_ENTRY(name) { #name, (SSL_METHOD *(*)(void))name##_method }
                                                                     ^
ossl_ssl.c:143:27: error: ‘SSLv3_client_method’ undeclared here (not in a function)
     OSSL_SSL_METHOD_ENTRY(SSLv3_client),
                           ^
ossl_ssl.c:119:69: note: in definition of macro ‘OSSL_SSL_METHOD_ENTRY’
 #define OSSL_SSL_METHOD_ENTRY(name) { #name, (SSL_METHOD *(*)(void))name##_method }
                                                                     ^
make[2]: *** [ossl_ssl.o] Error 1
make[2]: Leaving directory `/tmp/ruby-build.20160127112741.26444/ruby-2.2.3/ext/openssl'
make[1]: *** [ext/openssl/all] Error 2
make[1]: *** Waiting for unfinished jobs....
installing default pathname libraries
linking shared-object date_core.so
make[2]: Leaving directory `/tmp/ruby-build.20160127112741.26444/ruby-2.2.3/ext/date'
linking shared-object pathname.so
make[2]: Leaving directory `/tmp/ruby-build.20160127112741.26444/ruby-2.2.3/ext/pathname'
linking shared-object nkf.so
make[2]: Leaving directory `/tmp/ruby-build.20160127112741.26444/ruby-2.2.3/ext/nkf'
make[1]: Leaving directory `/tmp/ruby-build.20160127112741.26444/ruby-2.2.3'
make: *** [build-ext] Error 2
我已经试过了

我运行了以下程序:

sudo apt get安装libffi dev

sudo-apt-get-install-git-core-curl zlib1g开发人员构建基本libssl开发人员libreadline开发人员libyaml开发人员 libsqlite3 dev sqlite3 libxml2 dev libxslt1 dev libcurl4 openssl dev python软件属性libffi dev

curl-fsSL| rbenv安装--修补程序2.2.3


但仍然没有运气,我可能会错过一些东西,感谢你的帮助。谢谢

这看起来像是openssl问题。SSL_v3未定义意味着您没有它或您有一个较旧的库

尝试:

我已修复了通过从修补失败的构建

执行此命令:

curl-fsSL| rbenv安装--修补程序2.2.3


谢谢你的回答,我正在使用rbenv,否则我已经解决了这个问题。希望2.3.0版不需要这个。谢谢,它太棒了,工作得很好!!rbenv的管道以
用法:rbenv安装版本
结束。有没有不同的方法来处理--补丁?
rvm pkg install openssl
rvm install 2.2.3 --with-openssl-dir=$HOME/.rvm/usr