EC2 上没有 C 编译器? [英] No C compiler on EC2?
问题描述
我一直在尝试在我的 EC2 实例上安装 Gearman,但是当我尝试 ./configure gearmand 时,我得到了这个:
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
现在,奇怪的是 GCC 是绝对安装的.
Now, the strange thing is that GCC is most definitely installed.
which gcc46
返回
/usr/bin/gcc46
但是,当我尝试运行命令gcc"时,却没有找到...
However, when I try to run the command "gcc", it's not found...
我尝试通过 yum 擦除/安装/重新安装 gcc 和 gcc-c++,但这似乎没有帮助.
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.
推荐答案
你可以通过将 /usr/bin/gcc
链接到 /usr/bin/gcc46
来解决这个问题> 使用这个命令:
You can get around this by linking /usr/bin/gcc
to /usr/bin/gcc46
using this command:
ln /usr/bin/gcc46 /usr/bin/gcc
当您升级 gcc
时,您可以使用名为 /usr/bin/gccXX
的二进制文件保留多个版本,并简单地指向 /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).
这篇关于EC2 上没有 C 编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!