Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to compile Node.js on Amazon EC2, but I can't even install "build essential". Where's the problem?

Thanks.


sudo yum install build-essential
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
(...)
No package build-essential available.
Error: Nothing to do

./configure
Checking for program g++ or c++          : not found 
Checking for program icpc                : not found 
Checking for program c++                 : not found 
error: could not configure a cxx compiler!

could not configure a cxx compiler!

share|improve this question
add comment

4 Answers 4

up vote 9 down vote accepted

build-essential is a package that resides in aptitude (Debian), not in Yum (RHEL). Maybe you should rephrase your question to provide more information about the core issue--i.e., installing EC2 tools?


The (rough) equivalent of the build-essential meta-package for yum is:

yum install make glibc-devel gcc
share|improve this answer
    
Yes, please. I just edited my question. –  Randy Hartmen Nov 22 '10 at 21:46
    
Updated with a rough equivalent to the Debian meta-package. –  Andrew M. Nov 23 '10 at 4:18
4  
yum groupinstall "Development Tools" is a better match, I think. –  ephemient Dec 1 '10 at 2:49
    
Unfortunately (or fortunately?), you'll end up installing a ton of packages that you won't likely need. Although if you have the time and space to spare, this will save you a lot of time on future compiles. –  Andrew M. Dec 1 '10 at 3:35
add comment

Its important enough to make this more complete alternative a separate entry:

yum groupinstall "Development Tools"
share|improve this answer
add comment

In addition to gcc-c++, I also needed to install the development packages for openssl:

yum install openssl-devel

After that was installed I could then compile and install node.js successfully per http://nodejs.org/#download

share|improve this answer
add comment

I'm assuming that you are building node.js, as I had the same problem. I think the one you are missing is:

yum install gcc-c++

But you might need more than that one after you get past the first part.

share|improve this answer
add comment

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.