使用HomeBrew安装PHP的时候报错:
$ brew install [email protected]
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to www.bytereef.org:443
Error: [email protected]: Failed to download resource "[email protected]"
Download failed: https://www.bytereef.org/contrib/decimal.diff
处理方式
手动下载软件包到缓存目录
# 查看缓存目录
$ brew --cache
/Users/user/Library/Caches/Homebrew
# 查看详细日志
$ brew install [email protected] -v
Downloading https://www.bytereef.org/contrib/decimal.diff
/usr/local/Homebrew/Library/Homebrew/shims/shared/curl
--disable
--cookie /dev/null
--globoff --show-error
--user-agent Homebrew/3.5.2-156-gf1d04b4\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.14.4\)\ curl/7.54.0
--header Accept-Language:\ en
--fail
--retry 3
--location
--remote-time
--output /Users/user/Library/Caches/Homebrew/downloads/f60b5004541eb3c87cce87ef3bf94933a2684ab267346afdc45ae1622ffa923a--decimal.diff.incomplete
https://www.bytereef.org/contrib/decimal.diff
# 手动下载到缓存目录
wget https://www.bytereef.org/contrib/decimal.diff \
-O /Users/user/Library/Caches/Homebrew/downloads/f60b5004541eb3c87cce87ef3bf94933a2684ab267346afdc45ae1622ffa923a--decimal.diff
# 再次安装的时候就可以使用本地缓存
brew install [email protected] -v