由于Mac OS Mojave上的错误,无法使用RVM安装ruby

时间:2019-02-12 00:43:07

标签: ruby-on-rails ruby openssl rvm

我是ruby的新手,正在尝试使用RVM在我的计算机上重新安装ruby版本。

到目前为止,每次安装均失败。终端输出为:

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,甚至删除ruby和openssl并重新安装它们。但是这个错误一直在发生。有人可以建议我该怎么做吗?

0 个答案:

没有答案