Невозможно установить ruby ​​с RVM из-за ошибок в Mac OS Mojave - PullRequest
0 голосов
/ 12 февраля 2019

Я новичок в ruby ​​и пытаюсь переустановить версии ruby ​​на моей машине с помощью RVM.

Пока что каждая установка не удалась.Вывод терминала:

Requirements installation successful.
Installing Ruby from source to: /Users/jonathonday/.rvm/rubies/ruby-2.3.3, this may take a while depending on your cpu(s)...
ruby-2.3.3 - #downloading ruby-2.3.3, this may take a while depending on your connection...
ruby-2.3.3 - #extracting ruby-2.3.3 to /Users/jonathonday/.rvm/src/ruby-2.3.3..|
ruby-2.3.3 - #applying patch /Users/jonathonday/.rvm/patches/ruby/ruby_2_3_gcc7.patch.
ruby-2.3.3 - #applying patch /Users/jonathonday/.rvm/patches/ruby/2.3.3/random_c_using_NR_prefix.patch.
ruby-2.3.3 - #configuring......................................................|
ruby-2.3.3 - #post-configuration.
ruby-2.3.3 - #compiling........................................................-
Error running '__rvm_make -j4',
please read /Users/jonathonday/.rvm/log/1549931271_ruby-2.3.3/make.log

There has been an error while running make. Halting the installation.

соответствующие части журнала выглядят следующим образом:

./ossl_pkey.h:44:23: note: expanded from macro 'HAVE_BN_GENCB'
#define HAVE_BN_GENCB defined(HAVE_RSA_GENERATE_KEY_EX) || defined(HAVE_DH_GENERATE_PARAMETERS_EX) || defined(HAVE_DSA_GENERATE_PARAMETERS_EX)
                      ^
./ossl_pkey.h:45:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./ossl_pkey.h:44:60: note: expanded from macro 'HAVE_BN_GENCB'
#define HAVE_BN_GENCB defined(HAVE_RSA_GENERATE_KEY_EX) || defined(HAVE_DH_GENERATE_PARAMETERS_EX) || defined(HAVE_DSA_GENERATE_PARAMETERS_EX)

./ossl_pkey.h:45:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./ossl_pkey.h:44:103: note: expanded from macro 'HAVE_BN_GENCB'
#define HAVE_BN_GENCB defined(HAVE_RSA_GENERATE_KEY_EX) || defined(HAVE_DH_GENERATE_PARAMETERS_EX) || defined(HAVE_DSA_GENERATE_PARAMETERS_EX)
                                                                                                      ^
In file included from ossl_pkey_rsa.c:12:
In file included from ./ossl.h:236:
./ossl_pkey.h:45:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if HAVE_BN_GENCB
    ^
./ossl_pkey.h:44:23: note: expanded from macro 'HAVE_BN_GENCB'
#define HAVE_BN_GENCB defined(HAVE_RSA_GENERATE_KEY_EX) || defined(HAVE_DH_GENERATE_PARAMETERS_EX) || defined(HAVE_DSA_GENERATE_PARAMETERS_EX)
                      ^
./ossl_pkey.h:45:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./ossl_pkey.h:44:60: note: expanded from macro 'HAVE_BN_GENCB'
#define HAVE_BN_GENCB defined(HAVE_RSA_GENERATE_KEY_EX) || defined(HAVE_DH_GENERATE_PARAMETERS_EX) || defined(HAVE_DSA_GENERATE_PARAMETERS_EX)
                                                           ^
./ossl_pkey.h:45:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./ossl_pkey.h:44:103: note: expanded from macro 'HAVE_BN_GENCB'
#define HAVE_BN_GENCB defined(HAVE_RSA_GENERATE_KEY_EX) || defined(HAVE_DH_GENERATE_PARAMETERS_EX) || defined(HAVE_DSA_GENERATE_PARAMETERS_EX)
                                                                                                      ^
ossl_pkey_rsa.c:80:42: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if defined(HAVE_RSA_GENERATE_KEY_EX) && HAVE_BN_GENCB
                                         ^
./ossl_pkey.h:44:23: note: expanded from macro 'HAVE_BN_GENCB'
#define HAVE_BN_GENCB defined(HAVE_RSA_GENERATE_KEY_EX) || defined(HAVE_DH_GENERATE_PARAMETERS_EX) || defined(HAVE_DSA_GENERATE_PARAMETERS_EX)
                      ^
ossl_pkey_rsa.c:80:42: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./ossl_pkey.h:44:60: note: expanded from macro 'HAVE_BN_GENCB'
#define HAVE_BN_GENCB defined(HAVE_RSA_GENERATE_KEY_EX) || defined(HAVE_DH_GENERATE_PARAMETERS_EX) || defined(HAVE_DSA_GENERATE_PARAMETERS_EX)
                                                           ^
ossl_pkey_rsa.c:80:42: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./ossl_pkey.h:44:103: note: expanded from macro 'HAVE_BN_GENCB'
#define HAVE_BN_GENCB defined(HAVE_RSA_GENERATE_KEY_EX) || defined(HAVE_DH_GENERATE_PARAMETERS_EX) || defined(HAVE_DSA_GENERATE_PARAMETERS_EX)
                                                                                                      ^
ossl_pkey_rsa.c:101:42: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if defined(HAVE_RSA_GENERATE_KEY_EX) && HAVE_BN_GENCB
                                         ^
./ossl_pkey.h:44:23: note: expanded from macro 'HAVE_BN_GENCB'
#define HAVE_BN_GENCB defined(HAVE_RSA_GENERATE_KEY_EX) || defined(HAVE_DH_GENERATE_PARAMETERS_EX) || defined(HAVE_DSA_GENERATE_PARAMETERS_EX)
                      ^
ossl_pkey_rsa.c:101:42: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./ossl_pkey.h:44:60: note: expanded from macro 'HAVE_BN_GENCB'
#define HAVE_BN_GENCB defined(HAVE_RSA_GENERATE_KEY_EX) || defined(HAVE_DH_GENERATE_PARAMETERS_EX) || defined(HAVE_DSA_GENERATE_PARAMETERS_EX)
                                                           ^
ossl_pkey_rsa.c:101:42: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./ossl_pkey.h:44:103: note: expanded from macro 'HAVE_BN_GENCB'
#define HAVE_BN_GENCB defined(HAVE_RSA_GENERATE_KEY_EX) || defined(HAVE_DH_GENERATE_PARAMETERS_EX) || defined(HAVE_DSA_GENERATE_PARAMETERS_EX)
                                                                                                      ^
3 warnings generated.
3 warnings generated.
compiling ossl_pkcs12.c
compiling ossl_pkey_dsa.c
9 warnings generated.
compiling ossl_digest.c
In file included from ossl_pkcs12.c:5:
In file included from ./ossl.h:236:
./ossl_pkey.h:45:5: In file included from ossl_pkey_dsa.c:12:
In file included from ./ossl.h:236:
./ossl_pkey.h:45:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
warning#if HAVE_BN_GENCB

Я попытался обновить rvm и даже удалить рубины, openssl и переустановитьих.Но эта ошибка продолжает происходить.Может ли кто-нибудь, пожалуйста, посоветовать мне, что делать?

...