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 community
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 (
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,
make should get the corresponding Centos packages currently.
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
binutils, but I did not need
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: