RVM安装1.8.7返回“错误运行‘__rvm_make -j4’”

问题描述 投票:-1回答:1

我试图在Ubuntu 18.04.1 LTS安装Ruby 1.8.7。它说:“错误运行‘__rvm_make -j4’,”。这似乎是一个OpenSSL的问题对我来说。但我不知道如何解决它。最后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
ruby-on-rails makefile openssl ruby-1.8.7
1个回答
0
投票

这么多的尝试和谷歌上搜索后,我找到了解决方案。如果您已经安装了故宫作为根,请以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 <[email protected]>" [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
© www.soinside.com 2019 - 2024. All rights reserved.