我的互联网受到干扰,因此brew安装过程有时可能会失败。
==> Downloading https://github.com/openjdk/jdk/commit/f80a6066e45c3d53a61715abfe71abc3b2e162a1.patch?full_index=1
######################################################################## 100.0%
==> Downloading https://github.com/openjdk/jdk/commit/4622a18a72c30c4fc72c166bee7de42903e1d036.patch?full_index=1
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
Error: Failed to download resource "openjdk--patch"
Download failed: https://github.com/openjdk/jdk/commit/4622a18a72c30c4fc72c166bee7de42903e1d036.patch?full_index=1
我设法得到了那个文件,但我不知道brew的正确文件名。brew—缓存openjdk—修补
Error: No available formula or cask with the name "openjdk--patch".
brew--缓存的openjdk
~/Library/Caches/Homebrew/downloads/336948b1d9a8eba79fadf26569f4af0cb2fe147fde214fc9d9bf6b66f2f927d2--jdk15u-jdk-15.0.1-ga.tar.bz2
那么,如何获得该补丁的正确文件名呢?
我发现了棘手的问题,只需运行
brew install package-name -d
它将打印包名称使用的资源的每个缓存名称