java - problem about installing bazel with homebrew
问题描述
When I installed bazel with homebrew, I got the following error.
Updating Homebrew... bazel: Java 1.8 is required to install this
formula. JavaRequirement unsatisfied! You can install with Homebrew
Cask: brew cask install homebrew/cask-versions/java8 You can download
from:
https://www.oracle.com/technetwork/java/javase/downloads/index.html
Error: An unsatisfied requirement failed this build.
I installed (newest version) Java with homebrew.
I do not want to install two versions of Java in my mac.
How do I install bazel based on the available Java?
解决方案
I do not want to install two javas in my mac.
You have to, or remove the version you currently have. Bazel needs java 8 and no other versions are supported as mentioned in the docs:
You must install version 8 of the JDK. Versions other than 8 are not supported.
推荐阅读
- css - 与浏览器相比,WebView 呈现的 CSS 不同
- flutter - Android Studio 模拟器 NO DC 注意
- entity-framework - DisplayFormat 不适用于 EF Core 中的计算属性
- gitlab-ci - 此 GitLab CI 配置无效:项目 `my-ci-test-group/test-yaml` 未找到或访问被拒绝!即使他们在同一组
- spring - 如何调试不起作用的 Spring @Value 注入?
- node.js - 渲染后如何重定向,而快递没有错误
- c# - 无法在 IIS 中发布 Web API 的问题
- sas - 查找每个时间段每个 ID 的 SAS 中变量的最大值
- html - 如果我只针对它的类,CSS 显示 none 在 div 上不起作用
- html - 是什么导致桌面与 iOS 中的元素高度差异