3

我正在尝试在 Ubuntu 上使用 rvm 安装 ruby​​。我用突触包管理器安装了 rvm。

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

rvm 1.6.9 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]

我尝试安装红宝石:

$ 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' )

在同一页面上,它要求 do $ rvm reinstall 1.9.2 --with-openssl-dir=/usr/local,但这在 ruby​​ 编译期间给了我同样的错误。对于同一页面上的第二种方法,doingrvm 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
4

2 回答 2

4

You're running an outdated version of RVM. You should go with the recommended install path explained on http://rvm.io and don't use a package installer. To fix check this instruction https://stackoverflow.com/a/9056395/497756.

Also don't use 1.9.2 use the current 1.9.3 ruby instead and for new projects use 2.0.0 which is in RC1 and should be released soon.

于 2013-01-19T10:17:49.990 回答
1

if you use ubuntu, just use ruby from this ppa..

http://blog.brightbox.co.uk/posts/next-generation-ruby-packages-for-ubuntu
于 2013-01-19T10:19:57.563 回答