Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
share|improve this question

migrated from stackoverflow.com Jul 10 '11 at 22:21

This question came from our site for professional and enthusiast programmers.

What distro (Ubuntu? Debian?) and version? What repo? – Dirk Eddelbuettel Jul 10 '11 at 22:10
Are you running a Red Hat kernel on a Debian or Ubuntu distribution? Or are you actually running a Red Hat distribution? If you're running a Red Hat distribution, then you should be using yum or up2date (whichever is appropriate for your distribution version). – sarnold Jul 10 '11 at 22:18
Thanks for all your help guys! Googling how to install build-essential for CentOS pointed me in the right direction. – Waley Chen Jul 10 '11 at 22:52
Here's the cmd: sudo yum install -y libxml2 libxml2-devel libxslt libxslt-devel – Waley Chen Jul 10 '11 at 22:54
don't forget to add that as an answer and accept it once the stack software lets you do that. :) – sarnold Jul 10 '11 at 23:59
up vote 28 down vote accepted

I believe this still should work.

sudo yum groupinstall 'Development Tools'
share|improve this answer
this will install every single development tools available, just FYI – user2720864 Jul 1 '14 at 8:19
See yum group info "Development Tools" for list of packages installed – user12345 Apr 11 at 22:49
 yum install gcc gcc-c++ make openssl-devel

This works equivalent of build essential in Centos.

share|improve this answer
sudo yum install -y libxml2 libxml2-devel libxslt libxslt-devel
share|improve this answer
This seems more of a side-effect as @pablo-castellazzi mentioned in comments in your question section. Better answer imo is by K.K. Patel or Scott Likens – user12345 Apr 11 at 22:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.