运行错误' __ rvm_make install'安装openssl时

时间:2014-06-05 05:23:55

标签: ruby-on-rails ruby ubuntu openssl installation

我试图在Ubuntu服务器上设置Ruby on Rails。只要找到有效版本的红宝石,我就不在乎哪个版本的红宝石,但我正在使用v2.1.0。每当我尝试运行任何sudo gem ...命令时,我都会收到以下错误:

ERROR:  Loading command: install (LoadError)
    cannot load such file -- openssl
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

我认为我只需要安装openssl,但是当我使用rvm pkg install openssl进行尝试时,它会运行一段时间,但之后会失败并提供以下输出:

Checking requirements for ubuntu.
Requirements installation successful.
Fetching openssl-1.0.1g.tar.gz to /home/ubuntu/.rvm/archives
Extracting openssl to /home/ubuntu/.rvm/src/openssl-1.0.1g...
Configuring openssl in /home/ubuntu/.rvm/src/openssl-1.0.1g..................................
Compiling openssl in /home/ubuntu/.rvm/src/openssl-1.0.1g.............................................................................................................................
Installing openssl to /home/ubuntu/.rvm/usr.............................
Error running '__rvm_make install',
showing last 15 lines of /home/ubuntu/.rvm/log/1401942843/openssl_make.install.log
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ubuntu/.rvm/src/openssl-1.0.1g/tools'
installing man1/CA.pl.1
installing man1/asn1parse.1
installing man1/ca.1
installing man1/ciphers.1
installing man1/cms.1
cms.pod around line 457: Expected text after =item, not a number
cms.pod around line 461: Expected text after =item, not a number
cms.pod around line 465: Expected text after =item, not a number
cms.pod around line 470: Expected text after =item, not a number
cms.pod around line 474: Expected text after =item, not a number
POD document had syntax errors at /usr/bin/pod2man line 71.
make: *** [install_docs] Error 255
+ return 2

Please note that it's required to reinstall all rubies:

    rvm reinstall all --force

Updating openssl certificates..

我的系统上已经准备好了几个openssl目录,并且我已经尝试使用指向每个的--use-openssl-dir等参数重新安装ruby几次,但我仍然得到完全相同的错误显示在顶部这个帖子。我确定我必须以某种方式让rvm pkg install openssl工作。任何见解都将不胜感激。

更新嗯,我刚刚修改了我的ruby版本并再次安装了它,现在工作正常。

0 个答案:

没有答案