Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/21.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
Ubuntu';s rvm ruby和openssl_Ruby_Ubuntu_Compilation_Openssl_Rvm - Fatal编程技术网

Ubuntu';s rvm ruby和openssl

Ubuntu';s rvm ruby和openssl,ruby,ubuntu,compilation,openssl,rvm,Ruby,Ubuntu,Compilation,Openssl,Rvm,我正在尝试在Ubuntu上安装带有rvm的ruby。我用synaptic软件包管理器安装了rvm $ which rvm /usr/bin/rvm $ rvm --version rvm 1.6.9 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/] 我尝试安装ruby: $ rvm install 1.9.2 ... ERROR: Error running 'make ', pleas

我正在尝试在Ubuntu上安装带有rvm的ruby。我用synaptic软件包管理器安装了rvm

$ which rvm
/usr/bin/rvm
$ rvm --version

rvm 1.6.9 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]
我尝试安装ruby:

$ rvm install 1.9.2
...
ERROR: Error running 'make ', please read /usr/share/ruby-rvm/log/ruby-1.9.2-p180/make.log
ERROR: There has been an error while running make. Halting the installation.
日志文件中的问题与openssl相关:

ossl_ssl.c:110:1: error: ‘SSLv2_method’ undeclared here (not in a function)
上面写着做
$rvm要求
,但它给出了一个错误:

$ rvm requirements
ERROR: Unrecognized command line argument: 'requirements' ( see: 'rvm usage' )
在同一个页面上,它要求使用openssl dir=/usr/local执行
$rvm重新安装1.9.2,但这在ruby的编译过程中给了我同样的错误。对于同一页面上的第二种方法,执行
rvm pkg安装openssl
会让我

$ rvm pkg install openssl
ERROR: Unrecognized command line argument: 'pkg' ( see: 'rvm usage' )
Openssl显然已安装:

$ dpkg --get-selections | grep openssl
openssl                     install
python-openssl              install

您正在运行一个过时版本的RVM。您应该使用上介绍的推荐安装路径,不要使用软件包安装程序。要修复此问题,请检查此说明


另外,不要使用1.9.2,而是使用当前的1.9.3 ruby。对于新项目,请使用RC1中的2.0.0,它应该很快发布。

如果您使用ubuntu,只需使用本ppa中的ruby即可

http://blog.brightbox.co.uk/posts/next-generation-ruby-packages-for-ubuntu

不要使用软件包管理器安装rvm,请使用提供的安装程序脚本。有关如何执行此操作的详细教程,请参见。