Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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.

1  
What distro (Ubuntu? Debian?) and version? What repo? –  Dirk Eddelbuettel Jul 10 '11 at 22:10
1  
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
1  
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
1  
Here's the cmd: sudo yum install -y libxml2 libxml2-devel libxslt libxslt-devel –  Waley Chen Jul 10 '11 at 22:54
1  
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

3 Answers 3

 yum install gcc gcc-c++ make openssl-devel

This works equivalent of build essential in Centos.

share|improve this answer

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 at 8:19
up vote 1 down vote accepted
sudo yum install -y libxml2 libxml2-devel libxslt libxslt-devel
share|improve this answer

Your Answer

 
discard

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.