当前位置:   article > 正文

apt java不能安装,在MacOS上进行Java安装:Apt命令无法正常运行

苹果电脑终端安装aptcsdn

I have installed the latest version of JAVA (jdk-15.0.1_osx-x64_bin.dmg) on a MacBook (Catalina: 10.15.7).

When I try to use JAVA to install PUPPET MASTER with this command:

$ sudo apt Puppet Master install

I get this message back:

Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home/bin/apt" (-1)

Can anybody explain to me what that means and how I can go about installing Puppet Master in my machine?

Thank you so much

Mike

解决方案

Puppet supports agents running on MacOS, but the server is supported only on various flavors of Linux (even though the main server component runs in a JVM). This is unambiguously stated in the docs for version 7.0, which is current as of the time of this writing. It is less clear in the docs of earlier versions, but no less true.

Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home/bin/apt"

(-1)

Can anybody explain to me what that means

It means that there is no program named apt in your runtime path, though it looks like you may have a dangling symbolic link to such a program, as otherwise it's unclear why the system would be looking specifically for /Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home/bin/apt. Note well that apt is neither a standard component of OS X nor a standard utility packaged with the JVM.

and how I can go about

installing Puppet Master in my machine?

There is no supported way to do this. It might nevertheless be possible to make it work, but you would probably need to figure it out on your own. Before you go too far down that path, however, do be sure that you need the master (server) and not just the agent.

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/693834
推荐阅读
相关标签
  

闽ICP备14008679号