【问题标题】:Ubuntu's rvm ruby and opensslUbuntu 的 rvm ruby​​ 和 openssl
【发布时间】:2013-01-19 09:16:30
【问题描述】:

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

【问题讨论】:

标签: ruby ubuntu compilation openssl rvm


【解决方案1】:

您运行的是过时版本的 RVM。您应该使用http://rvm.io 中说明的推荐安装路径,并且不要使用包安装程序。要修复检查此指令https://stackoverflow.com/a/9056395/497756

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

【讨论】:

    【解决方案2】:

    如果您使用 ubuntu,只需使用此 ppa 中的 ruby​​..

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-28
      • 2012-07-17
      • 1970-01-01
      • 2013-03-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多