linux(susa)上安装memcache报错,急急急~~!!!
安装memcache的时候报以下的错误,
x-shcs-tfmcjyh-v01:/home/memcache/memcached-1.4.25 # ./configure --prefix=/usr/local/memcached
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
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 make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/memcache/memcached-1.4.25':
configure: error: C compiler cannot create executables
See `config.log' for more details
其中GCC安装情况如下
x-shcs-tfmcjyh-v01:/home/memcache/memcached-1.4.25 # gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)
查看错误日志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 memcached configure 1.4.25, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr/local/memcached
## --------- ##
## Platform. ##
## --------- ##
hostname = x-shcs-tfmcjyh-v01
uname -m = x86_64
uname -r = 3.0.13-0.27-default
uname -s = Linux
uname -v = #1 SMP Wed Feb 15 13:33:49 UTC 2012 (d73692b)
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/sbin
PATH: /root/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/bin/X11
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /usr/lib/mit/bin
PATH: /usr/lib/mit/sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2326: checking build system type
configure:2340: result: x86_64-unknown-linux-gnu
configure:2360: checking host system type
configure:2373: result: x86_64-unknown-linux-gnu
configure:2410: checking for a BSD-compatible install
configure:2478: result: /usr/bin/install -c
configure:2489: checking whether build environment is sane
configure:2544: result: yes
configure:2695: checking for a thread-safe mkdir -p
configure:2734: result: /bin/mkdir -p
configure:2741: checking for gawk
configure:2757: found /usr/bin/gawk
configure:2768: result: gawk
configure:2779: checking whether make sets $(MAKE)
configure:2801: result: yes
configure:2830: checking whether make supports nested variables
configure:2847: result: yes
configure:3024: checking for gcc
configure:3040: found /usr/bin/gcc
configure:3051: result: gcc
configure:3280: checking for C compiler version
configure:3289: gcc --version >&5
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-50)
Copyright (C) 2006 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:3300: $? = 0
configure:3289: gcc -v >&5
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enabl
e-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/
java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)
configure:3300: $? = 0
configure:3289: gcc -V >&5
gcc: '-V' option must have argument
configure:3300: $? = 1
configure:3289: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3300: $? = 1
configure:3320: checking whether the C compiler works
configure:3342: gcc conftest.c >&5
gcc: error trying to exec 'cc1': execvp: No such file or directory
configure:3346: $? = 1
configure:3384: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "memcached"
| #define PACKAGE_TARNAME "memcached"
| #define PACKAGE_VERSION "1.4.25"
| #define PACKAGE_STRING "memcached 1.4.25"
| #define PACKAGE_BUGREPORT "memcached@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "memcached"
| #define VERSION "1.4.25"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3389: error: in `/home/memcache/memcached-1.4.25':
configure:3391: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-unknown-linux-gnu
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_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_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=x86_64-unknown-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/memcache/memcached-1.4.25/missing aclocal-1.14'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AUTOCONF='${SHELL} /home/memcache/memcached-1.4.25/missing autoconf'
AUTOHEADER='${SHELL} /home/memcache/memcached-1.4.25/missing autoheader'
AUTOMAKE='${SHELL} /home/memcache/memcached-1.4.25/missing automake-1.14'
AWK='gawk'
BUILD_CACHE_FALSE=''
BUILD_CACHE_TRUE=''
BUILD_DTRACE_FALSE=''
BUILD_DTRACE_TRUE=''
BUILD_SOLARIS_PRIVS_FALSE=''
BUILD_SOLARIS_PRIVS_TRUE=''
BUILD_SPECIFICATIONS_FALSE=''
BUILD_SPECIFICATIONS_TRUE=''
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DTRACE=''
DTRACEFLAGS=''
DTRACE_INSTRUMENT_OBJ_FALSE=''
DTRACE_INSTRUMENT_OBJ_TRUE=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_SASL=''
ENABLE_SASL_FALSE=''
ENABLE_SASL_TRUE=''
EXEEXT=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/memcache/memcached-1.4.25/missing makeinfo'
MKDIR_P='/bin/mkdir -p'
OBJEXT=''
PACKAGE='memcached'
PACKAGE_BUGREPORT='memcached@googlegroups.com'
PACKAGE_NAME='memcached'
PACKAGE_STRING='memcached 1.4.25'
PACKAGE_TARNAME='memcached'
PACKAGE_URL=''
PACKAGE_VERSION='1.4.25'
PATH_SEPARATOR=':'
PROFILER=''
PROFILER_FLAGS=''
PROFILER_LDFLAGS=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.4.25'
XML2RFC=''
XSLTPROC=''
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/memcache/memcached-1.4.25/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local/memcached'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "memcached"
#define PACKAGE_TARNAME "memcached"
#define PACKAGE_VERSION "1.4.25"
#define PACKAGE_STRING "memcached 1.4.25"
#define PACKAGE_BUGREPORT "memcached@googlegroups.com"
#define PACKAGE_URL ""
#define PACKAGE "memcached"
#define VERSION "1.4.25"
configure: exit 77