首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >运行rvm install ruby-2.2时,make.log的尾部出现make.log posting错误

运行rvm install ruby-2.2时,make.log的尾部出现make.log posting错误
EN

Stack Overflow用户
提问于 2021-07-26 15:33:33
回答 1查看 88关注 0票数 0

我正在尝试在我的gemfile.lock中按照minitest的要求通过rvm安装ruby-2.2,但是我遇到了一个错误,如下面ruby-2.2的make.log的尾部所示。

Make.log的尾部:

代码语言:javascript
复制
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 

当我尝试通过rbenv安装它时,它会说:

代码语言:javascript
复制
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
EN

回答 1

Stack Overflow用户

发布于 2021-07-26 20:07:52

使用以下命令升级openssl:

代码语言:javascript
复制
brew upgrade openssl

但这也需要我删除xcode命令行工具,然后重新安装它们

代码语言:javascript
复制
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68526051

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档