歡迎您光臨本站 註冊首頁

誰能給我看看是什麼問題啊,生成時的!

←手機掃碼閱讀     火星人 @ 2014-03-23 , reply:0

問題可能不難,但本人是新手
希望能知道哪行提示的什麼錯誤,怎麼解決
生成時出現問題
[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

## --------- ##
## Platform. ##
## --------- ##

hostname = localhost.localdomain
uname -m = i686
uname -r = 2.4.21-4.EL
uname -s = Linux
uname -v = #1 Fri Oct 3 18:13:58 EDT 2003

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /root/bin


## ----------- ##
## Core tests. ##
## ----------- ##

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.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnulibc1
ac_cv_build_alias=i686-pc-linux-gnulibc1
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnulibc1
ac_cv_host_alias=i686-pc-linux-gnulibc1
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /usr/libxml2-2.6.11/missing --run aclocal-1.8'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /usr/libxml2-2.6.11/missing --run tar'
ANSI2KNR=''
AR=''
AS=''
AUTOCONF='${SHELL} /usr/libxml2-2.6.11/missing --run autoconf'
AUTOHEADER='${SHELL} /usr/libxml2-2.6.11/missing --run autoheader'
AUTOMAKE='${SHELL} /usr/libxml2-2.6.11/missing --run automake-1.8'
AWK='gawk'
C14N_OBJ=''
CATALOG_OBJ=''
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEBUG_OBJ=''
DEFS=''
DEPDIR=''
DLLTOOL=''
DOCB_OBJ=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
FTP_OBJ=''
HAVE_ISINF=''
HAVE_ISNAN=''
HTML_DIR=''
HTML_OBJ=''
HTTP_OBJ=''
ICONV_LIBS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIBXML_MAJOR_VERSION='2'
LIBXML_MICRO_VERSION='11'
LIBXML_MINOR_VERSION='6'
LIBXML_VERSION='2.6.11'
LIBXML_VERSION_INFO='8:11:6'
LIBXML_VERSION_NUMBER='20611'
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /usr/libxml2-2.6.11/missing --run makeinfo'
MV=''
M_LIBS=''
OBJDUMP=''
OBJEXT=''
PACKAGE='libxml2'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PATTERN_TEST=''
PYTHON=''
PYTHON_INCLUDES=''
PYTHON_SITE_PACKAGES=''
PYTHON_SUBDIR=''
PYTHON_TESTS=''
PYTHON_VERSION=''
RANLIB=''
RDL_LIBS=''
READER_TEST=''
RELDATE=''
RM=''
SET_MAKE=''
SHELL='/bin/sh'
STATIC_BINARIES=''
STRIP=''
TAR=''
TEST_C14N=''
TEST_CATALOG=''
TEST_DEBUG=''
TEST_HTML=''
TEST_PHTML=''
TEST_PUSH=''
TEST_REGEXPS=''
TEST_SAX=''
TEST_SCHEMAS=''
TEST_THREADS=''
TEST_VALID=''
TEST_VTIME=''
TEST_XINCLUDE=''
TEST_XPATH=''
TEST_XPTR=''
THREADS_W32=''
THREAD_CFLAGS=''
THREAD_LIBS=''
U=''
VERSION='2.6.11'
WIN32_EXTRA_LDFLAGS=''
WIN32_EXTRA_LIBADD=''
WITH_C14N=''
WITH_CATALOG=''
WITH_DEBUG=''
WITH_DOCB=''
WITH_FTP=''
WITH_HTML=''
WITH_HTTP=''
WITH_ICONV=''
WITH_ISO8859X=''
WITH_LEGACY=''
WITH_MEM_DEBUG=''
WITH_OUTPUT=''
WITH_PATTERN=''
WITH_PUSH=''
WITH_PYTHON_FALSE=''
WITH_PYTHON_TRUE=''
WITH_READER=''
WITH_REGEXPS=''
WITH_SAX1=''
WITH_SCHEMAS=''
WITH_THREADS=''
WITH_TREE=''
WITH_TRIO=''
WITH_TRIO_SOURCES_FALSE=''
WITH_TRIO_SOURCES_TRUE=''
WITH_VALID=''
WITH_WRITER=''
WITH_XINCLUDE=''
WITH_XPATH=''
WITH_XPTR=''
XINCLUDE_OBJ=''
XML_CFLAGS=''
XML_INCLUDEDIR=''
XML_LIBDIR=''
XML_LIBS=''
XML_LIBTOOLLIBS=''
XPATH_OBJ=''
XPTR_OBJ=''
Z_CFLAGS=''
Z_LIBS=''
ac_ct_AR=''
ac_ct_AS=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_DLLTOOL=''
ac_ct_F77=''
ac_ct_OBJDUMP=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnulibc1'
build_alias=''
build_cpu='i686'
build_os='linux-gnulibc1'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-linux-gnulibc1'
host_alias=''
host_cpu='i686'
host_os='linux-gnulibc1'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/usr/libxml2-2.6.11/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p -- .'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
pythondir=''
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE "libxml2"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "2.6.11"

configure: exit 77

[火星人 ] 誰能給我看看是什麼問題啊,生成時的!已經有202次圍觀

http://coctec.com/docs/linux/show-post-126051.html