您的位置:首页 > 其它

no acceptable C compiler found in $PATH

2015-11-19 00:00 274 查看

为了安装fastdfs系统,安装libevent

安装libevent发生的错误: no acceptable C compiler found in $PATH

[root@localhost libevent-2.0.21-stable]# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in '/home/wwang/libevent-2.0.21-stable': configure: error: no acceptable C compiler found in $PATH See 'config.log' for more details


解决办法:

[root@localhost libevent-2.0.21-stable]# yum install gcc
安装后就可以正常执行了

原因: 新装的centos系统,只是做了yum update更新,没有做其他处理

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  fastdfs libevent