编译Apache执行/.configure操作的时候,出现了cannot create executables的问题

a349981576 2016-05-04 11:31:02
如题,我把错误打印和config.log都贴出来,请高手帮忙看一下是怎么回事。

checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
configure:
configure: Configuring Apache Portable Runtime library...
configure:
configuring package in srclib/apr now
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
Configuring APR library
Platform: x86_64-unknown-linux-gnu
checking for working mkdir -p... yes
APR Version: 1.5.2
checking for chosen layout... apr
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/ftpuser/httpd-2.4.17/srclib/apr':
configure: error: C compiler cannot create executables
See `config.log' for more details
configure failed for srclib/apr



下面是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.69. Invocation command line was

$ /home/ftpuser/httpd-2.4.17/srclib/apr/configure --disable-option-checking --prefix=/etc/httpd --exec-prefix=/etc/httpd --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc/httpd/conf --with-included-apr --enable-http2 --enable-so --enable-dav --enable-dav-fs --enable-dav-lock --enable-suexec --enable-deflate --enable-unique-id --enable-mods-static=most --with-mpm=prefork --with-suexec-caller=apache --with-suexec-docroot=/ --with-suexec-gidmin=100 --with-suexec-logfile=/var/log/httpd/suexec_log --with-suexec-uidmin=100 --with-suexec-userdir=public_html --with-suexec-bin=/usr/sbin/suexec --with-pcre=/usr --includedir=/usr/include/apache --libexecdir=/usr/lib/apache --datadir=/var/www --localstatedir=/var --enable-logio --enable-ssl --enable-rewrite --enable-proxy --enable-expires --with-ssl=/usr --enable-headers --enable-static-support --with-expat=builtin CFLAGS= LIBS= --cache-file=/dev/null --srcdir=/home/ftpuser/httpd-2.4.17/srclib/apr --prefix=/etc/httpd --exec-prefix=/etc/httpd --libdir=/etc/httpd/lib --includedir=/usr/include/apache --bindir=/usr/bin --datadir=/var/www --with-installbuilddir=/var/www/build

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

hostname = localhost.localdomain
uname -m = x86_64
uname -r = 2.6.32-504.16.2.el6.x86_64
uname -s = Linux
uname -v = #1 SMP Wed Apr 22 06:48:29 UTC 2015

/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/lib64/qt-3.3/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/sbin
PATH: /root/bin


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

configure:4598: checking build system type
configure:4612: result: x86_64-unknown-linux-gnu
configure:4632: checking host system type
configure:4645: result: x86_64-unknown-linux-gnu
configure:4665: checking target system type
configure:4678: result: x86_64-unknown-linux-gnu
configure:4741: checking for working mkdir -p
configure:4757: result: yes
configure:4849: checking for chosen layout
configure:4851: result: apr
configure:5116: checking for gcc
configure:5132: found /usr/bin/gcc
configure:5143: result: gcc
configure:5372: checking for C compiler version
configure:5381: gcc --version >&5This 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.69. Invocation command line was

$ /home/ftpuser/httpd-2.4.17/srclib/apr/configure --disable-option-checking --prefix=/etc/httpd --exec-prefix=/etc/httpd --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc/httpd/conf --with-included-apr --enable-http2 --enable-so --enable-dav --enable-dav-fs --enable-dav-lock --enable-suexec --enable-deflate --enable-unique-id --enable-mods-static=most --with-mpm=prefork --with-suexec-caller=apache --with-suexec-docroot=/ --with-suexec-gidmin=100 --with-suexec-logfile=/var/log/httpd/suexec_log --with-suexec-uidmin=100 --with-suexec-userdir=public_html --with-suexec-bin=/usr/sbin/suexec --with-pcre=/usr --includedir=/usr/include/apache --libexecdir=/usr/lib/apache --datadir=/var/www --localstatedir=/var --enable-logio --enable-ssl --enable-rewrite --enable-proxy --enable-expires --with-ssl=/usr --enable-headers --enable-static-support --with-expat=builtin CFLAGS= LIBS= --cache-file=/dev/null --srcdir=/home/ftpuser/httpd-2.4.17/srclib/apr --prefix=/etc/httpd --exec-prefix=/etc/httpd --libdir=/etc/httpd/lib --includedir=/usr/include/apache --bindir=/usr/bin --datadir=/var/www --with-installbuilddir=/var/www/build

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

hostname = localhost.localdomain
uname -m = x86_64
uname -r = 2.6.32-504.16.2.el6.x86_64
uname -s = Linux
uname -v = #1 SMP Wed Apr 22 06:48:29 UTC 2015

/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/lib64/qt-3.3/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/sbin
PATH: /root/bin


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

configure:4598: checking build system type
configure:4612: result: x86_64-unknown-linux-gnu
configure:4632: checking host system type
configure:4645: result: x86_64-unknown-linux-gnu
configure:4665: checking target system type
configure:4678: result: x86_64-unknown-linux-gnu
configure:4741: checking for working mkdir -p
configure:4757: result: yes
configure:4849: checking for chosen layout
configure:4851: result: apr
configure:5116: checking for gcc
configure:5132: found /usr/bin/gcc
configure:5143: result: gcc
configure:5372: checking for C compiler version
configure:5381: gcc --version >&5

gcc (GCC) 5.3.0
Copyright (C) 2015 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:5392: $? = 0
configure:5381: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-redhat-linux-gnu/5.3.0/lto-wrapper
Target: x86_64-redhat-linux-gnu
Configured with: ../configure --prefix=/usr --libdir=/usr/lib64 --libexecdir=/usr/lib64 --mandir=/usr/share/man --infodir=/usr/share/info --program-suffix=-5.3 --build=x86_64-redhat-linux-gnu --enable-bootstrap --enable-lto --enable-languages=c,c++,fortran,go,java,lto,objc --enable-stage1-languages=c,c++ --enable-objc-gc --disable-stage1-checking --enable-host-shared --enable-checking=release --disable-multilib --enable-__cxa_atexit --enable-threads --disable-werror --disable-rpath --disable-sjlj-exceptions --enable-linker-build-id --enable-plugin --with-gxx-include-dir=/usr/include/c++/5.3 --with-system-zlib --disable-libssp --disable-libitm --with-slibdir=/lib64 --without-system-libunwind --enable-java-awt=qt CFLAGS='-pipe -O2 -march=core2 -mmmx -mssse3' CXXFLAGS='-pipe -O2 -march=core2 -mmmx -mssse3' LDFLAGS='-Wl,--as-needed -Wl,--strip-all' 'BOOT_CFLAGS=-pipe -O2 -march=core2 -mmmx -mssse3' 'BOOT_CXXFLAGS=-pipe -O2 -march=core2 -mmmx -mssse3' 'BOOT_LDFLAGS=-Wl,--as-needed -Wl,--strip-all' 'CFLAGS_FOR_TARGET=-pipe -O2 -march=core2 -mmmx -mssse3' 'CXXFLAGS_FOR_TARGET=-pipe -O2 -march=core2 -mmmx -mssse3' 'LDFLAGS_FOR_TARGET=-Wl,--as-needed -Wl,--strip-all'
Thread model: posix
gcc version 5.3.0 (GCC)
configure:5392: $? = 0
configure:5381: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:5392: $? = 1
configure:5381: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:5392: $? = 1
configure:5412: checking whether the C compiler works
configure:5434: gcc conftest.c >&5
/usr/bin/ld: unrecognized option '-plugin'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
configure:5438: $? = 1
configure:5476: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:5481: error: in `/home/ftpuser/httpd-2.4.17/srclib/apr':
configure:5483: error: C compiler cannot create executables
See `config.log' for more details
...全文
377 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2016-05-04
  • 打赏
  • 举报
回复
权限问题 ?

33,311

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 新手乐园
社区管理员
  • 新手乐园社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧