在MacOS上进行Java安装:Apt命令无法正常运行 [英] Java installation on MacOS: Apt commando doesn't work

查看:667
本文介绍了在MacOS上进行Java安装:Apt命令无法正常运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在MacBook(卡塔琳娜:10.15.7)上安装了最新版本的JAVA(jdk-15.0.1_osx-x64_bin.dmg).

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

当我尝试使用JAVA通过以下命令安装PUPPET MASTER时:

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

$ sudo apt Puppet Master install

我收到此消息:

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

有人可以向我解释这是什么意思,以及如何在自己的计算机上安装Puppet Master?

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

非常感谢你迈克

推荐答案

我不太擅长在macOS上做一些事情,但是从我的阅读中发现:

I am not very skilled at doing stuffs in macOS but from what I read this is what I found:

Mac OS X没有apt-get.有一个名为 Homebrew 的程序包管理器.

Mac OS X doesn't have apt-get. There is a package manager called Homebrew that is used instead.

我链接到的页面具有最新的自制软件安装方式.

The page I linked to has an up-to-date way of installing homebrew.

之后,Homebrew的使用方式为 brew install< package>

After that, usage of Homebrew is brew install <package>

Xcode命令行工具是Homebrew的前提条件之一.

One of the prerequisites for Homebrew are the XCode command line tools.

  1. 从App Store安装XCode.
  2. 按照此堆栈溢出答案中的说明安装XCode命令行工具.

这篇关于在MacOS上进行Java安装:Apt命令无法正常运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆