執行./configure時的報錯資訊和config.log如下,求大神搭救(系統是最小化安裝的,第一次執行./configure報錯提示no acceptable C compiler found in $PATH,后執行yum install gcc,現在報錯如下)
報錯資訊:
[root@localhost cacti-spine-0.8.8h]# ./configure
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 gawk... (cached) gawk
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/cacti-spine-0.8.8h':
configure: error: C compiler cannot create executables
See `config.log' for more details
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 Spine Poller configure 0.8.8h, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost.localdomain
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
configure:2336: checking build system type
configure:2350: result: x86_64-unknown-linux-gnu
configure:2370: checking host system type
configure:2383: result: x86_64-unknown-linux-gnu
configure:2428: checking for a BSD-compatible install
configure:2496: result: /usr/bin/install -c
configure:2507: checking whether build environment is sane
configure:2562: result: yes
configure:2713: checking for a thread-safe mkdir -p
configure:2752: result: /bin/mkdir -p
configure:2759: checking for gawk
configure:2775: found /bin/gawk
configure:2786: result: gawk
configure:2797: checking whether make sets $(MAKE)
configure:2819: result: yes
configure:2848: checking whether make supports nested variables
configure:2865: result: yes
configure:3055: checking for gawk
configure:3082: result: gawk
configure:3141: checking for gcc
configure:3157: found /usr/bin/gcc
configure:3168: result: gcc
configure:3397: checking for C compiler version
configure:3406: gcc --version >&5
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16)
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:3417: $? = 0
configure:3406: 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-16) (GCC)
configure:3417: $? = 0
configure:3406: gcc -V >&5
gcc: '-V' option must have argument
configure:3417: $? = 1
configure:3406: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3417: $? = 1
configure:3437: checking whether the C compiler works
configure:3459: gcc -lpthread -lssl -lm conftest.c >&5
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
configure:3463: $? = 1
configure:3501: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Spine Poller"
| #define PACKAGE_TARNAME "spine-poller"
| #define PACKAGE_VERSION "0.8.8h"
| #define PACKAGE_STRING "Spine Poller 0.8.8h"
| #define PACKAGE_BUGREPORT "http://www.cacti.net/bugs.php"
| #define PACKAGE_URL ""
| #define PACKAGE "spine"
| #define VERSION "0.8.8h"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3506: error: in `/tmp/cacti-spine-0.8.8h':
configure:3508: error: C compiler cannot create executables
See `config.log' for more details