gpt4 book ai didi

ruby - Ubuntu 的 rvm ruby​​ 和 openssl

转载 作者:数据小太阳 更新时间:2023-10-29 07:53:26 24 4
gpt4 key购买 nike

我正在尝试在 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)

关于 https://rvm.io/packages/openssl/它说要执行 $ rvm requirements 但它给出了一个错误:

$ rvm requirements
ERROR: Unrecognized command line argument: 'requirements' ( see: 'rvm usage' )

在同一页面上,它要求执行 $ rvm reinstall 1.9.2 --with-openssl-dir=/usr/local,但这在 ruby​​ 的编译过程中给了我同样的错误。对于同一页面上的第二种方法,执行 rvm pkg install 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。您应该使用在 http://rvm.io 上解释的推荐安装路径。并且不要使用软件包安装程序。要修复,请查看此说明 https://stackoverflow.com/a/9056395/497756 .

也不要使用 1.9.2,请改用当前的 1.9.3 ruby​​,对于新项目,请使用 RC1 中的 2.0.0,应该会很快发布。

关于ruby - Ubuntu 的 rvm ruby​​ 和 openssl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14412852/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com