configure: error: installation or configuration problem: C compiler cannot creat

21 篇文章 0 订阅
19 篇文章 0 订阅
写道
configure: error: installation or configuration problem: C compiler cannot create executables.

 的解决

 

 

在linux从源代码安装文件时出现如下问题的原因如下:

 

写道
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:566: checking for gcc
configure:679: checking whether the C compiler (gcc ) works
configure:695: gcc -o conftest conftest.c 1>&5
/usr/lib/gcc-lib/i386-slackware-linux/3.2.2/../../../../i386-slackware-linux/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:

#line 690 "configure"
#include "confdefs.h"

main(){return(0);}

 

写道
意思是不能生成可执行文件,可能是你的开发环境安装不完全

 

我把glib2 和 g++ 安装后 解决了这个问题

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值