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
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
I believe this still should work.
sudo yum groupinstall 'Development Tools'
yum group info "Development Tools" for list of packages installed
– user12345
Apr 11 '16 at 22:49
glibc-devel and maybe make... yum groups are soooo shitty !
– Sandburg
May 02 '19 at 13:28
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.
– tripleee
Jun 17 '17 at 17:26
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. https://wiki.centos.org/HowTos/SetupRpmBuildEnvironment
– tripleee
Jun 18 '17 at 14:16
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
sudo yum install -y libxml2 libxml2-devel libxslt libxslt-devel
yumorup2date(whichever is appropriate for your distribution version). – sarnold Jul 10 '11 at 22:18sudo yum install gcc gcc-cpp make rpm-build– Pablo Castellazzi Jul 11 '11 at 05:01