使用Homebrew安装Java8


1

我键入brew cask install java8,但无法下载。

==> Downloading https://download.oracle.com/otn-pub/java/jdk/8u192-b12/750e1c8617c5452694857ad95c3ee
######################################################################## 100.0%
curl: (7) Failed to connect to download.oracle.com port 80: Connection refused
Error: Download failed on Cask 'java8' with message: Download failed: https://download.oracle.com/otn-pub/java/jdk/8u192-b12/750e1c8617c5452694857ad95c3ee230/jdk-8u192-macosx-x64.dmg

我的问题:

  1. 有关使其工作的建议?
  2. 有什么方法可以从预下载的文件安装?

我尝试手动下载dmg,并将文件(jdk-8u192-macosx-x64.dmg)放在/ Users / myuser / Library / Caches / Homebrew和/ Users / myuser / Library / Caches / Homebrew / Cask中,但它仍然尝试当我做brew cask安装时下载文件。我不确定是否使用了错误的文件名,或者是否需要将其压缩。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.