Server Fault is a question and answer site for system and network administrators. 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

I've been trying to install Gearman on my EC2 instance, but when I try to ./configure gearmand, I get this:

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/ec2-user/gearmand-1.1.3':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

Now, the strange thing is that GCC is most definitely installed.

which gcc46



However, when I try to run the command "gcc", it's not found...

I've tried to erase/intall/reinstall gcc and gcc-c++ via yum, but that doesn't seem to be helping.

Any advice? Thanks in advance.

share|improve this question
And which Linux distribution are you using? – Michael Hampton Nov 10 '12 at 20:12
It's an Amazon Linux AMI instance. I believe it's CentOS? Not sue, though. – Ghostcode Nov 10 '12 at 20:14
"Amazon Linux" only uses yum and RPM. It is not CentOS nor based on it. I don't recommend using it. – Michael Hampton Nov 10 '12 at 20:20
Well, I'm only using it as a development sandbox. Any idea on how to fix the problem in the original post? – Ghostcode Nov 10 '12 at 20:21
There is a good chance that configure looks for which gcc (i.e. without a version number). In many cases (including Amazon Linux) gcc is symlinked to a versioned file. For instance one of my servers (Amazon Linux 2012.09) has /usr/bin/gcc --> /etc/alternatives/gcc --> /usr/bin/gcc44. The amzn repository has a package group called 'Development tools' which should provide everything needed to compile common software (although I dislike it on a production server). Check/create the symlinks (or try using alternatives) as some gcc versions don't set them automatically. – cyberx86 Nov 11 '12 at 1:31

Your Answer


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

Browse other questions tagged or ask your own question.