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

本文记录了在Linux环境下尝试安装一个库时遇到的C编译器缺失问题及其解决办法。当尝试使用configure脚本进行库安装时,系统提示未找到可接受的C编译器。通过安装Development Tools和Development Libraries分组解决了该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

这是个很小的问题,因为刚接触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"



















本文转simmy51CTO博客,原文链接:http://blog.51cto.com/helpdesk/529551,如需转载请自行联系原作者
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值