【发布时间】:2020-10-25 05:19:42
【问题描述】:
我正在使用装有 macOS 10.10 的(相当旧的)Macbook。我一直在努力使用自制软件安装以下程序:ffmpeg、cairo 和 sox。每当我运行brew install ffmpeg 时,它一直运行良好,直到最终,我遇到以下错误:
==> Downloading https://download.gnome.org/sources/glib/2.64/glib-2.64.3.tar.xz
curl: (35) SSL peer handshake failed, the server most likely requires a client certificate to connect
Error: Failed to download resource "glib"
Download failed: https://download.gnome.org/sources/glib/2.64/glib-2.64.3.tar.xz
据我所知,正在使用的 cURL 版本存在问题,它不支持 OpenSSL,并且 SecureTransport 正在阻碍。我在运行时看到了这个:
curl 7.43.0 (x86_64-apple-darwin14.0) libcurl/7.43.0 SecureTransport zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets
似乎正在使用的 cURL 是操作系统内置的,我尝试通过在我的.bash_profile 中编辑我的$PATH 来切换到自制软件,然后运行以下命令,再次找到 SecureTransport:
$ which curl
/usr/local/opt/curl/bin/curl
$ curl -V
curl 7.71.1 (x86_64-apple-darwin14.5.0) libcurl/7.71.1 SecureTransport zlib/1.2.5
Release-Date: 2020-07-01
但这无济于事。我也试过brew upgrade,brew uninstall curl 然后brew install curl-openssl 但是这个自制软件安装也遇到了同样的 curl(35) 错误。
如何禁用 SecureTransport? 还有其他可能的解决方法吗? 我有必要将我的 macOS 更新到更新的版本吗?
【问题讨论】:
标签: curl openssl homebrew secure-transport