Brew安装groovy失败

时间:2020-02-04 20:28:02

标签: macos groovy homebrew adoptopenjdk

当我尝试运行brew install groovy时,它会告诉我

groovy: Java 1.7+ is required to install this formula.
Install AdoptOpenJDK with Homebrew Cask:
  brew cask install adoptopenjdk
Error: An unsatisfied requirement failed this build.

我像说的那样运行brew cask install adoptopenjdk,但是当我再次运行brew install groovy时,我会看到一个弹出窗口,提示

“adoptopenjdk-13.0.2.jdk” cannot be opened because the developer cannot be verified.

Screenshot of the popup, stackoverflow won't let me embed images

任何人以前都看过这个,或者不知道该怎么办?

1 个答案:

答案 0 :(得分:2)

转到“系统偏好设置”,“安全性和隐私”。希望在“常规”选项卡中,您可以看到采用openjdk的“仍然允许”选项。下次运行它时,仍然会弹出一个窗口,但是这次您可以“打开”该程序。然后...之后...不再弹出窗口。