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

    xiaoxiao2022-06-30  47

    写道 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++ 安装后 解决了这个问题

     

     

     

     

     

    转载请注明原文地址: https://ju.6miu.com/read-1125608.html

    最新回复(0)