build-essential
installs fine on Debian/Ubuntu,
$ apt search build-essential build-essential - Informational list of build-essential packages $ sudo apt install build-essential
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...
How do I install build-essential
on Mac?
build-essential is what is called a meta-package. It in itself does not install anything. Instead, it is a link to several other packages that will be installed as dependencies. In the case of the build-essential meta-package, it will install everything required for compiling basic software written in C and C++.
The build-essential package actually belongs to Debian. It is not a piece of software in itself. It contains a list of packages that are required to create a Debian package (deb). These packages are libc, gcc, g++, make, dpkg-dev etc.
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
,
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.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.
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
(Although, if you already have Homebrew installed, you probably have Xcode and its command-line tools.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With