简体   繁体   English

运行 rvm install ruby​​-2.2 时,make.log 发布 make.log 尾部出错

[英]When running rvm install ruby-2.2 an error occurs of make.log posting tail of make.log

I am trying to install ruby-2.2 via rvm as required by minitest in my gemfile.lock but I am experiencing an error as shown in the tail of make.log of ruby-2.2 below.我正在尝试按照 minitest 在我的 gemfile.lock 中的要求通过 rvm 安装 ruby​​-2.2,但我遇到了如下 ruby​​-2.2 的 make.log 尾部所示的错误。

Tail of make.log: make.log 的尾部:

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1205.0.22.11)
Target: arm64-apple-darwin20.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
compiling compar.c
. ./vm_opts.h
compiling complex.c
compiling dir.c
compiling dln_find.c
compiling enum.c
compiling encoding.c
compiling enumerator.c
compiling error.c
encoding.c:825:2: error: implicit declaration of function 'rb_str_change_terminator_length' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        rb_str_change_terminator_length(obj, oldtermlen, termlen);
        ^
1 error generated.
make: *** [encoding.o] Error 1
make: *** Waiting for unfinished jobs....
+__rvm_make:0> return 2 

When I try to install it via rbenv it says:当我尝试通过 rbenv 安装它时,它说:

dgram_write in libcrypto.a(bss_dgram.o)
      _RAND_query_egd_bytes in libcrypto.a(rand_egd.o)
      ...
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [link_a.darwin] Error 1
make[3]: *** [do_darwin-shared] Error 2
make[2]: *** [libcrypto.1.0.0.dylib] Error 2
make[1]: *** [shared] Error 2
make: *** [build_crypto] Error 1

Do upgrade openssl using:使用以下方法升级 openssl:

brew upgrade openssl

but it also required me to remove xcode commandlinetools and then reinstall them但它也要求我删除 xcode commandlinetools 然后重新安装它们

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM