提问人:flower7182 提问时间:11/16/2023 最后编辑:flower7182 更新时间:11/16/2023 访问量:30
无法在 macOS Catalina 上安装任何版本的 OpenSSL
Can't install any version of OpenSSL on macOS Catalina
问:
我在 iMac 10.15.2019 corei5 上运行了 macOS Catalina 5。我需要安装 OpenSSL@3 作为多个软件包的依赖项,但我遇到了 Homebrew 的持续失败。
每当我尝试使用 Homebrew 安装任何版本的 OpenSSL 时,即使从源代码构建,该过程也无法通过测试。这会导致无限期冻结,在详细模式下没有进展,或者终止并显示错误消息。具体来说,这是我从运行命令“brew install --build-from-source -v openssl@3”中得到的。
Proxy started on port [::1]:59941
Engine "ossltest" set.
Using default temp DH parameters
ACCEPT [::1]:59942
Server responds on [::1]:59942
Engine "ossltest" set.
Connection opened
No progress made at /private/tmp/opensslA3-20231116-6202-5z1n6t/openssl-3.1.4/util/perl/TLSProxy/Proxy.pm line 422, <> line 3.
C05D000D01000000:error:0A000126:SSL routines:ssl3_read_n:unexpected eof while reading:ssl/record/rec_layer_s3.c:304:
CONNECTED(00000006)
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 213 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
Protocol : TLSv1.2
Cipher : 0000
Session-ID:
Session-ID-ctx:
Master-Key:
PSK identity: None
PSK identity hint: None
SRP username: None
Start Time: 1700082042
Timeout : 7200 (sec)
Verify return code: 0 (ok)
Extended master secret: no
---
# Looks like your test exited with 29 before it could output anything.
CONNECTION FAILURE
C0FDB61101000000:error:0A000126:SSL routines:ssl3_read_n:unexpected eof while reading:ssl/record/rec_layer_s3.c:304:
0 items in the session cache
0 client connects (SSL_connect())
0 client renegotiates (SSL_connect())
0 client connects that finished
1 server accepts (SSL_accept())
0 server renegotiates (SSL_accept())
0 server accepts that finished
0 session cache hits
0 session cache misses
0 session cache timeouts
0 callback cache hits
0 cache full overflows (20480 allowed)70-test_renegotiation.t ............
Dubious, test returned 29 (wstat 7424, 0x1d00)
Failed 5/5 subtests
70-test_servername.t ............... ok
我试图通过删除旧版本的 OpenSSL 来解决这个问题,特别是使用“brew uninstall [email protected]”,然后按照 Homebrew 的建议执行“rm -rf /usr/local/etc/openssl@3”。但是,这导致无法使用以前可以使用的 Laravel Valet。我遇到的错误消息如下:
dyld: Library not loaded: /usr/local/opt/[email protected]/lib/libssl.1.1.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
并尝试安装 [email protected] 在测试中都失败并终止。
Test Summary Report
-------------------
../test/recipes/70-test_comp.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 4 tests but ran 0.
../test/recipes/70-test_renegotiation.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: No plan found in TAP output
../test/recipes/70-test_sslcertstatus.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: No plan found in TAP output
../test/recipes/70-test_sslmessages.t (Wstat: 7424 Tests: 3 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 21 tests but ran 3.
../test/recipes/70-test_sslrecords.t (Wstat: 7424 Tests: 10 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 20 tests but ran 10.
../test/recipes/70-test_sslsigalgs.t (Wstat: 7424 Tests: 24 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 26 tests but ran 24.
../test/recipes/70-test_sslskewith0p.t (Wstat: 7424 Tests: 0 Failed: 0)
Non-zero exit status: 29
Parse errors: No plan found in TAP output
Files=159, Tests=2610, 269 wallclock secs ( 1.33 usr 0.21 sys + 72.44 cusr 38.44 csys = 112.42 CPU)
Result: FAIL
make[1]: *** [_tests] Error 1
make: *** [tests] Error 2
==> Formula
Path: /Users/doctor/Library/Caches/Homebrew/downloads/5d69480761d31ddfa50a9a5064d5db7580881802b5db053d75d97ff359e7c790--openssl@1.1.rb
==> Configuration
HOMEBREW_VERSION: 4.1.20
ORIGIN: https://github.com/Homebrew/brew
HEAD: d3d51d3448966b5250b5c60110c945040054803d
Last commit: 4 days ago
Core tap JSON: 15 Nov 21:05 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.gLtXQLcIKE/org.xquartz:0
HOMEBREW_MAKE_JOBS: 6
Homebrew Ruby: 2.6.10 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.10_1/bin/ruby
CPU: hexa-core 64-bit kabylake
Clang: 12.0.0 build 1200
Git: 2.33.0 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 10.15.7-x86_64
CLT: 12.4.0.0.1.1610135815
Xcode: N/A
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j6
CMAKE_PREFIX_PATH: /usr/local
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.15
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/mac/super:/usr/bin:/bin:/usr/sbin:/sbin
Error: [email protected] 1.1.1w did not build
至少,我正在寻求一种解决方案,以在执行“brew uninstall [email protected]”和“rm -rf /usr/local/etc/openssl@3”以重新获得对 Laravel valet 的访问权限之前恢复我的 Mac 功能。
请注意,Homebrew 适用于不依赖于 Openssl 的任何其他公式。
答: 暂无答案
评论