您的位置:首页 > 其它

configure: error: no acceptable C compiler found in $PATH

2011-03-29 08:56 567 查看
这是个很小的问题,因为刚接触Linux,开始时不明是什么原因,记录下。

要装一个库的时候提示如下错误:

[root@localhost libetpan-0.57]# ./configure ;make ;make install

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 whether to enable maintainer-specific portions of Makefiles... no
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: no acceptable C compiler found in $PATH
See `config.log' for more details.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.

原因是没装Development Tools和 Development Libraries

安装:
[root@station8 ~]# export LANG=en_US.UTF-8
[root@station8 ~]# yum grouplist
[root@station8 ~]# yum groupinstall "X Software Development"

##安装开发工具和开发库分组:
[root@station8 ~]#yum groupinstall "Development Tools" "Development Libraries"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐