繁体   English   中英

Ruby 2.3.8 在带有 rbenv 的 MacOS 上安装失败,因为它在安装 openssl 时显示构建失败

[英]Ruby 2.3.8 installation fails on MacOS with rbenv as it is showing build failure while installing openssl

我有 macos monterey M1 pro 芯片,在通过 rbenv 安装 ruby 版本 2.3.8 时失败,因为它在安装 OpenSSL 时显示构建错误。

 % rbenv install 2.3.8 To follow progress, use 'tail -f /var/folders/qm/hl42kf3n21l484mj_trgmn_40000gq/T/ruby-build.20220902142349.96411.log' or pass --verbose Downloading openssl-1.0.2u.tar.gz... -> https://dqw8nmjcqpjn7.cloudfront.net/ecd0c6ffb493dd06707d38b14bb4d8c2288bb7033735606569d8f90f89669d16 Installing openssl-1.0.2u... BUILD FAILED (macOS 12.5 using ruby-build 20220825) Inspect or clean up the working tree at /var/folders/qm/hl42kf3n21l484mj_trgmn_40000gq/T/ruby-build.20220902142349.96411.dXy6dR Results logged to /var/folders/qm/hl42kf3n21l484mj_trgmn_40000gq/T/ruby-build.20220902142349.96411.log Last 10 log lines: _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

我已经尝试过这个stackoverflow 链接中发布的解决方案,但是我的自制软件中没有 Binutils,所以它没有帮助。 我在互联网上搜索了很多,无法找到任何可能的解决方案。 我粘贴了确切的错误和日志。 让我知道是否有人以前遇到过同样的问题?

RUBY_CFLAGS="-Wno-error=implicit-function-declaration" rbenv install 2.3.8

暂无
暂无

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

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