簡體   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