无法使GraalVM在最新版本的OS/X上工作?

huangapple go评论70阅读模式
英文:

Unable to get GaalVM to work on latest version of OS/X?

问题

我尝试加载了最新版本的GraalVM,从网站上下载了名为:graalvm-ce-java11-darwin-amd64-20.2.0.tar.gz 的文件。

我解压了这个捆绑包,按照说明进行操作,然后使用sudo mv命令将目录移动到 /Library/Java/JavaVirtualMachines,并按照说明配置了 .bash_profile。如果我运行 java_home -V 命令,我可以看到虚拟机已经存在。

但是,当我尝试执行虚拟机中的任何命令行工具(例如:java、javac、jar等),OS/X系统会弹出一个错误提示,说这些应用程序来自不受信任的开发者。然后,我不得不前往控制面板/安全性与隐私/通用,逐个手动选择每个二进制文件和每个本地库,并告诉OS/X将它们添加为例外,允许它们运行。

我是不是漏掉了什么步骤,还是这是预期行为?有没有更好的方法在OS/X上安装GraalVM呢?

英文:

I have tried loading the latest versions of GraalVm from the site onto OS/X from : graalvm-ce-java11-darwin-amd64-20.2.0.tar.gz

I tar this bundle, following the instructions and sudo mv the directory to /Libaray/Java/JavaVirtualMachines and setup the .bash_profile per the instructions. If I run the java_home -V command I see the VM there.

When I try to execute any of the command line utilizes from the VM (java, javac, jar, etc.) I get a fault by OS/X saying the application is from an untrusted developer. I then I have to to control panel/security and settings/general and manually select each an every binary and each and every native library one at a time and tell OS/X to add them as an exception to allow them to be run.

Am I missing something or is this expected behavior? Is there a better way to install the graalVM on OS/X?

答案1

得分: 0

这是一个旧问题,但或许有所帮助:
https://github.com/oracle/graal/issues/1724
我想知道为什么这个问题还没有被修复。

英文:

This is an old issue but maybe it helps:
https://github.com/oracle/graal/issues/1724
I wonder why this has not been fixed yet.

huangapple
  • 本文由 发表于 2020年9月25日 11:23:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/64057341.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定