如何在Mac上安装build-essential? [英] How to install build-essential on mac?
问题描述
build-essential
在Debian/Ubuntu上安装良好,
build-essential
installs fine on Debian/Ubuntu,
$ apt search build-essential
build-essential - Informational list of build-essential packages
$ sudo apt install build-essential
但是在brew/mac上似乎不可用:
But does not appear to be available on brew/mac :
brew install build-essential
Error: No available formula with the name "build-essential"
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
如何在Mac上安装build-essential
?
推荐答案
自制软件(brew
)与apt-get
不同,并且没有相同的软件包.特别地,build-essential
不是Homebrew软件包.软件包 build-essential
是Debian软件包.从apt show build-essential
,
Homebrew (brew
) is not the same as apt-get
, and does not have the same packages. In particular, build-essential
is not a Homebrew package. The package build-essential
is a Debian package. From apt show build-essential
,
如果您不打算构建Debian软件包,则不需要 包裹.从
dpkg
(> = 1.14.18)开始,此软件包是必需的 用于构建 Debian软件包.
If you do not plan to build Debian packages, you don't need this package. Starting with
dpkg
(>= 1.14.18) this package is required for building Debian packages.
此软件包包含以下信息性软件包列表: 被认为是构建 Debian 软件包所必需的.这个包也 取决于该列表中的软件包,以便轻松获得 已安装基本构建软件包.
This package contains an informational list of packages which are considered essential for building Debian packages. This package also depends on the packages on that list, to make it easy to have the build-essential packages installed.
您可以使用Xcode安装编译器和支持的实用程序.首先,从Mac App Store下载Xcode,然后在终端中运行它以安装Xcode的命令行工具:
You can install compilers and supporting utilities with Xcode. First, download Xcode from the Mac App Store, and then run this in the terminal to install Xcode's command-line tools:
$ xcode-select --install
(尽管,如果您已经安装了Homebrew,则可能已经安装了Xcode及其命令行工具.)
(Although, if you already have Homebrew installed, you probably have Xcode and its command-line tools.)
这篇关于如何在Mac上安装build-essential?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!