Homebrew openjdk@11 安装问题

Homebrew openjdk@11 installation issues

提问人:yangcodes 提问时间:11/9/2023 更新时间:11/9/2023 访问量:57

问:

我在 M1 Pro 上,无法在下面看到 openjdk,但是我在运行时确实看到以下内容brew listjava -version

openjdk version "11.0.15" 2022-04-19 LTS
OpenJDK Runtime Environment Zulu11.56+19-CA (build 11.0.15+10-LTS)
OpenJDK 64-Bit Server VM Zulu11.56+19-CA (build 11.0.15+10-LTS, mixed mode)

运行时,我得到以下输出:brew install openjdk@11

Warning: You are using macOS 13.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
pre-release version.

Error: openjdk@11: no bottle available!
You can try to install from source with:
  brew install --build-from-source openjdk@11
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.
Java macOS 自制软件 java-11

评论

0赞 Basil Bourque 11/9/2023
另外,我们中的许多人发现 SDKMAN! 是在 Mac 上下载、安装和卸载 JDK 和其他软件包的一种非常简单的方法。
0赞 Rafael Guillen 11/9/2023
尝试brew search openjdk
0赞 Jonathan Dodds 11/9/2023
我刚刚在装有 macOS Ventura (v13.6.1) 的 Intel 机器上进行了测试,没有错误。装有 macOS Sonoma (v14.1.1) 的 M1 机器上也没有错误。brew install openjdk@11
0赞 chenrui 11/9/2023
你能展示和brew configbrew doctor

答: 暂无答案