- 论坛徽章:
- 0
|
小弟在编译安装apache的时候报缺少apr,后来在编译apr的时候就报这个错,以下是config.log的信息~
[root@blast apr-1.5.0]# vi 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.63. Invocation command line was
$ ./configure --prefix=/usr/local/apr/
## --------- ##
## Platform. ##
## --------- ##
hostname = blast.com
uname -m = x86_64
uname -r = 2.6.32-431.el6.x86_64
uname -s = Linux
uname -v = #1 SMP Fri Nov 22 03:15:09 UTC 2013
/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: /usr/bin/
PATH: /usr/lib64/qt-3.3/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /root/bin
PATH: /usr/bin/
PATH: /root/bin
PATH: /root/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:3991: checking build system type
configure:4009: result: x86_64-unknown-linux-gnu
configure:4031: checking host system type
configure:4046: result: x86_64-unknown-linux-gnu
configure:4068: checking target system type
configure:4083: result: x86_64-unknown-linux-gnu
configure:4147: checking for working mkdir -p
configure:4163: result: yes
configure:4255: checking for chosen layout
configure:4257: result: apr
configure:4524: checking for gcc
configure:4540: found /usr/bin//gcc
configure:4551: result: gcc
configure:4783: checking for C compiler version
configure:4791: gcc --version >&5
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
Copyright (C) 2010 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:4795: $? = 0
configure:4802: gcc -v >&5
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)
configure:4806: $? = 0
configure:4813: gcc -V >&5
gcc: '-V' option must have argument
configure:4817: $? = 1
configure:4840: checking for C compiler default output file name
configure:4862: gcc conftest.c >&5
gcc: error trying to exec 'cc1': execvp: No such file or directory
configure:4866: $? = 1
configure:4904: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""| #define PACKAGE_TARNAME ""| #define PACKAGE_VERSION ""| #define PACKAGE_STRING ""| #define PACKAGE_BUGREPORT ""| /* end confdefs.h. */|| int| main ()
| {
|
| ;
| return 0;
| }
configure:4910: error: in `/home/apr-1.5.0':
configure:4913: error: C compiler cannot create executables
See `config.log' for more details.
执行过export LIBS=;和export CFLAGS=;还是不行。查看了下gcc包,应该是都装好了,而且还重装过。
[root@blast apr-1.5.0]# rpm -qa | grep gcc*
gcc-4.4.7-4.el6.x86_64
gcc-gfortran-4.4.7-4.el6.x86_64
gconf-editor-2.28.0-3.el6.x86_64
libgcc-4.4.7-4.el6.x86_64
libgcrypt-1.4.5-11.el6_4.x86_64
pkgconfig-0.23-9.1.el6.x86_64
crash-gcore-command-1.0-5.el6.x86_64
gcc-c++-4.4.7-4.el6.x86_64
gcc-objc++-4.4.7-4.el6.x86_64
gcc-gnat-4.4.7-4.el6.x86_64
gconfmm26-2.28.0-1.el6.x86_64
gcalctool-5.28.2-3.el6.x86_64
gcc-objc-4.4.7-4.el6.x86_64
gcc-java-4.4.7-4.el6.x86_64
gc-7.1-10.el6.x86_64
求求大神们帮忙看看~
|
|