When I run the command:
sudo apt-get install build-essential
I get the following error message:
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package build-essential
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityI believe this still should work.
sudo yum groupinstall 'Development Tools'
yum group info "Development Tools"
for list of packages installed
Apr 11, 2016 at 22:49
glibc-devel
and maybe make
... yum groups are soooo shitty !
yum install gcc gcc-c++ make
This works equivalent of build-essential
in CentOS.
openssl-devel
might coincidentally pull in the stuff you want, but isn't properly build-essential
itself.
The metapackage build-essential
is provided on Debian to collect all the commonly required essential build tools in the Debian build chain, including those you need to create .deb
packages. Centos uses a different package manager altogether and does not directly provide anything like this; you'll need to manually install the individual components of the toolchain (gcc
, make
, common development libraries, documentation, etc, as well as of course the tools to create RPM packages if you want to do that).
If you drop the .deb
or RPM stuff, gcc
, gcc-c++
, glibc-devel
, and make
should get the corresponding Centos packages currently.
rpm-build
. The actual utility's name is rpmbuild
. For more information, see e.g. wiki.centos.org/HowTos/SetupRpmBuildEnvironment
I combined accepted solution from Scott Likens with the comment from user12345, and first looked at what was in the "Development Tools" group before installing.
As user12345 pointed out, you can do this with:
$ yum group info "Development Tools"
I did want to install packages like autoconf
and automake
and binutils
, but I did not need doxygen
or ant
or mercurial
.
Below is the list I used, along with their dependencies, but of course, your mileage may vary, depending upon YOUR needs.
$ yum install \
autoconf automake binutils \
bison flex gcc gcc-c++ gettext \
libtool make patch pkgconfig \
redhat-rpm-config rpm-build rpm-sign \
ctags elfutils indent patchutils
This website has a mapping of what you should install for what unix flavor you have:
sudo yum install -y libxml2 libxml2-devel libxslt libxslt-devel
yum
orup2date
(whichever is appropriate for your distribution version).