問題可能不難,但本人是新手 希望能知道哪行提示的什麼錯誤,怎麼解決 生成時出現問題 [root@localhost libxml2-2.6.11]# ./configure checking build system type... i686-pc-linux-gnulibc1 checking host system type... i686-pc-linux-gnulibc1 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details.
之後看gcc [root@localhost libxml2-2.6.11]# gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20)
config.log內容如下:
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was generated by GNU Autoconf 2.59. Invocation command line was
configure:1567: checking build system type configure:1585: result: i686-pc-linux-gnulibc1 configure:1593: checking host system type configure:1607: result: i686-pc-linux-gnulibc1 configure:1648: checking for a BSD-compatible install configure:1703: result: /usr/bin/install -c configure:1714: checking whether build environment is sane configure:1757: result: yes configure:1814: checking for gawk configure:1830: found /bin/gawk configure:1840: result: gawk configure:1850: checking whether make sets $(MAKE) configure:1870: result: yes configure:2081: checking for gcc configure:2097: found /usr/bin/gcc configure:2107: result: gcc configure:2351: checking for C compiler version configure:2354: gcc --version &5 gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-20) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2357: $? = 0 configure:2359: gcc -v &5 Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20) configure:2362: $? = 0 configure:2364: gcc -V &5 gcc: argument to `-V' is missing configure:2367: $? = 1 configure:2390: checking for C compiler default output file name configure:2393: gcc conftest.c >&5 /usr/bin/ld: cannot open crt1.o: No such file or directory collect2: ld returned 1 exit status configure:2396: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "libxml2" | #define VERSION "2.6.11" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2435: error: C compiler cannot create executables See `config.log' for more details.