rvm install 1.8.7 возвращает «Ошибка при запуске« __rvm_make -j4 »» - PullRequest
0 голосов
/ 01 февраля 2019

Я пытаюсь установить ruby ​​1.8.7 в Ubuntu 18.04.1 LTS.Он говорит: «Ошибка запуска« __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

1 Ответ

0 голосов
/ 03 февраля 2019

после стольких попыток и поиска в Google я нашел решение.Пожалуйста, запустите от имени пользователя root, если у вас есть installd 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
...