rvm install 1.8.7返回“运行'__rvm_make -j4'时出错”

时间:2019-01-31 21:00:29

标签: ruby-on-rails makefile openssl ruby-1.8.7

我正在尝试在Ubuntu 18.04.1 LTS中安装ruby 1.8.7。它说“运行'__rvm_make -j4'时出错”。对我来说,这似乎是一个opensl问题。但是我不确定如何解决它。最后20行复制如下。请帮助我找到安装1.8.7的修补程序

    Makefile:197: recipe for target 'ossl_pkey_rsa.o' failed
    make[1]: *** [ossl_pkey_rsa.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    Makefile:197: recipe for target 'ossl_engine.o' failed
    make[1]: *** [ossl_engine.o] Error 1
    Makefile:197: recipe for target 'ossl_pkey_ec.o' failed
    make[1]: *** [ossl_pkey_ec.o] Error 1
    ossl_x509attr.c: In function ‘ossl_x509attr_get_value’:
    ossl_x509attr.c:220:11: warning: implicit declaration of function ‘i2d_ASN1_SET_OF_ASN1_TYPE’; did you mean ‘i2d_ASN1_SET_ANY’? [-Wimplicit-function-declaration]
    length = i2d_ASN1_SET_OF_ASN1_TYPE(attr->value.set,
    ^~~~~~~~~~~~~~~~~~~~~~~~~
    i2d_ASN1_SET_ANY
    Makefile:197: recipe for target 'ossl_x509attr.o' failed
    make[1]: *** [ossl_x509attr.o] Error 1
    make[1]: Leaving directory '/usr/local/rvm/src/ruby-1.8.7-p374/ext/openssl'
    Makefile:293: recipe for target 'all' failed
    make: *** [all] Error 1
    +++ return 2

1 个答案:

答案 0 :(得分:0)

经过无数次尝试之后,我找到了解决方案。 如果您已经以root身份安装rvm,请以root身份运行

root@sadiq-Aspire-315-51-z: rvm get head
Downloading https://get.rvm.io
Downloading https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer.asc
Verifying /usr/local/rvm/archives/rvm-installer.asc
gpg: Signature made Sunday 30 December 2018 04:14:46 PM IST
gpg:                using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 7D2B AF1C F37B 13E2 069D  6956 105B D0E7 3949 9BDB
GPG verified '/usr/local/rvm/archives/rvm-installer'
Downloading https://github.com/rvm/rvm/archive/master.tar.gz
Upgrading the RVM installation in /usr/local/rvm/
Upgrade of RVM in /usr/local/rvm/ is complete.
  * Please do NOT forget to add your users to the rvm group.
     The installer no longer auto-adds root or users to the rvm group. Admins must do this.
     Also, please note that group memberships are ONLY evaluated at login time.
     This means that users must log out then back in before group membership takes effect!

Thanks for installing RVM 
Please consider donating to our open collective to help us maintain RVM.

  Donate: https://opencollective.com/rvm/donate


RVM reloaded!
root@sadiq-Aspire-315-51-z:~# rvm install 1.8.7