我在 Mojave 上有一台 Mac,它无法安装开发所需的一些基本内容:
$ rbenv install 2.6.0
Downloading openssl-1.1.1d.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/1e3a91bc1f9dfce01af26026f856e064eab4c8ee0a8f457b5ae30b40b8b711f2
Installing openssl-1.1.1d...
BUILD FAILED (OS X 10.14.6 using ruby-build 20191223)
Inspect or clean up the working tree at /var/folders/l_/xgbzwc3j0xn_cb74550m71vr0000gn/T/ruby-build.20191225225406.18503.lq8QNM
Results logged to /var/folders/l_/xgbzwc3j0xn_cb74550m71vr0000gn/T/ruby-build.20191225225406.18503.log
Last 10 log lines:
_s_server_main in s_server.o
"_verify_stateless_cookie_callback", referenced from:
_s_server_main in s_server.o
"_wait_for_async", referenced from:
_s_client_main in s_client.o
_sv_body in s_server.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [apps/openssl] Error 1
make: *** [all] Error 2
我发现了几篇博客文章,讨论 Mojave 版本如何为开发人员带来了一些问题,但没有一篇文章提供了解决方案。还有其他人遇到过上述问题吗?
重新发布我的回复另一个线程 https://stackoverflow.com/a/59977338/4887288- 我遇到了类似的问题,可以推荐以下相关的方法binutils需要成为卸载首先编辑。对我有用的:
brew uninstall binutils
# Uninstalling /usr/local/Cellar/binutils/2.33.1... (134 files, 167.6MB)
rbenv install 2.6.5 && rbenv local 2.6.5 ;
# Downloading openssl-1.1.1d.tar.gz...
# -> https://dqw8nmjcqpjn7.cloudfront.net/1e3a91bc1f9dfce01af26026f856e064eab4c8ee0a8f457b5ae30b40b8b711f2
# Installing openssl-1.1.1d...
# Installed openssl-1.1.1d to /Users/auser/.rbenv/versions/2.6.5
# Downloading ruby-2.6.5.tar.bz2...
# -> https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.5.tar.bz2
# Installing ruby-2.6.5...
# ruby-build: using readline from homebrew
# Installed ruby-2.6.5 to /Users/auser/.rbenv/versions/2.6.5
在此之前,我还收到了一些不同的消息ruby-build.log- 最后一个是:
# ld: symbol(s) not found for architecture x86_64
作为自制程序设置的一部分(卸载之前),我采取的许多其他步骤包括:
brew install perl ruby rbenv
# // UPDATE PATHs with suggestions made by brew during install
which awk perl
# /usr/local/bin/awk
# /usr/local/bin/perl
# ^^^ IN SHORT ALL PATHs should be with /usr/local/opt OR /usr/local/bin
您可以根据需要再次重新安装 binutils,并记住在以后的任何安装中重复卸载rbenv install
您可能会重新执行的版本(自我注释)。
PS - 在 macOS Catalina 10.15.3 (19D76) 上测试,成功安装 2.4.0 和 2.6.5
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)