简体   繁体   English

Brew 安装 groovy 失败

[英]Brew install groovy fails

When I try to run brew install groovy it tells me当我尝试运行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.

I ran brew cask install adoptopenjdk like it says, but when I run brew install groovy again, I get a popup that says我像它说的那样运行了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弹出窗口的屏幕截图,stackoverflow 不允许我嵌入图像

Anyone seen this before or know what to do?任何人以前见过这个或知道该怎么做?

Go to "System Preferences", "Security & Privacy".转到“系统偏好设置”、“安全和隐私”。 In the "General" tab you hopefully will see an option to "Allow Anyway" for adoptopenjdk.在“常规”选项卡中,您希望能看到一个选项,用于为采用的 openjdk 选择“仍然允许”。 The next time you run it there will still be a popup but this time you can "open" the program.下次运行它时仍会出现一个弹出窗口,但这次您可以“打开”该程序。 Then... after that... no more pop ups.然后......在那之后......不再弹出窗口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM