No C compiler on EC2?

I try to install Gearman on my EC2 instance, but when I try. / configure gearmand, I get the following:

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 it is strange that GCC is definitely installed.

 which gcc46 

returns

 /usr/bin/gcc46 

However, when I try to run the gcc command, it was not found ...

I tried to erase / intall / reinstall gcc and gcc-C ++ via yum, but this does not seem to help.

Any tips? Thanks in advance.

+7
source share
1 answer

You can get around this by linking /usr/bin/gcc to /usr/bin/gcc46 with this command:

 ln /usr/bin/gcc46 /usr/bin/gcc 

When upgrading gcc you can save multiple versions with binary names named /usr/bin/gccXX and simply point the /usr/bin/gcc link to the version you want to use (which is likely to be the newest).

+6
source

All Articles