No C compiler on EC2?

南楼画角 提交于 2019-11-28 03:42:09

问题


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

returns

/usr/bin/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.


回答1:


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

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

When you upgrade gcc, you can then keep multiple versions with binaries named /usr/bin/gccXX and simple point the /usr/bin/gcc link to the version you want to use (which will probably be the newest one).



来源:https://stackoverflow.com/questions/13326984/no-c-compiler-on-ec2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!