安装nagios,报checking for C compiler default output file name...错误

lzg19861022 2014-03-27 05:06:16
执行./configure --prefix=/usr/local/nagios报
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/media/nagios-4.0.4':
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 configure, which was
generated by GNU Autoconf 2.63. Invocation command line was

$ ./configure --prefix=/usr/local/nagios

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

hostname = localhost
uname -m = x86_64
uname -r = 2.6.32-131.0.15.el6.x86_64
uname -s = Linux
uname -v = #1 SMP Tue May 10 15:42:40 EDT 2011

/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/gcc
PATH: /usr/java/jdk1.6.0_43/bin
PATH: /usr/bin/gcc
PATH: /usr/java/jdk1.6.0_43/bin
PATH: /usr/java/jdk1.6.0_43/bin
PATH: /usr/java/jdk1.6.0_43/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: /usr/TLQ8/bin
PATH: /usr/TLQ8/samples/bin
PATH: /root/bin


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

configure:1924: checking for a BSD-compatible install
configure:1992: result: /usr/bin/install -c
configure:2011: checking build system type
configure:2029: result: x86_64-unknown-linux-gnu
configure:2051: checking host system type
configure:2066: result: x86_64-unknown-linux-gnu
configure:2137: checking for gcc
configure:2153: found /usr/bin/gcc
configure:2164: result: gcc
configure:2396: checking for C compiler version
configure:2404: gcc --version >&5
gcc (GCC) 4.4.5 20110214 (Red Hat 4.4.5-6)
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:2408: $? = 0
configure:2415: 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.5 20110214 (Red Hat 4.4.5-6) (GCC)
configure:2419: $? = 0
configure:2426: gcc -V >&5
gcc: '-V' option must have argument
configure:2430: $? = 1
configure:2453: checking for C compiler default output file name
configure:2475: gcc conftest.c >&5
gcc: error trying to exec 'cc1': execvp: No such file or directory
configure:2479: $? = 1
configure:2517: 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:2523: error: in `/media/nagios-4.0.4':
configure:2526: 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_prog_ac_ct_CC=gcc

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

BASEEXTRALIBS=''
BROKERLIBS=''
BROKER_H=''
BROKER_LDFLAGS=''
BROKER_O=''
CC='gcc'
CFLAGS=''
CGIEXTRAS=''
CHECKRESULTDIR=''
COMMAND_OPTS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GDLIBS=''
GREP=''
HTTPD_CONF=''
INITDIR=''
INSTALL='/usr/bin/install -c'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_OPTS=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAIL_PROG=''
MOD_CFLAGS=''
MOD_LDFLAGS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PACKDIR=''
PATH_SEPARATOR=':'
PATH_TO_TRACEROUTE=''
PERL=''
SET_MAKE=''
SHELL='/bin/sh'
SNPRINTF_O=''
SOCKETLIBS=''
STRIP=''
TMPDIR=''
USE_EVENTBROKER=''
USE_LIBTAP=''
VERSION=''
WORKER_CFLAGS=''
WORKER_LDFLAGS=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
cgiurl=''
command_grp=''
command_user=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
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}'
htmurl=''
includedir='${prefix}/include'
infodir='${datarootdir}/info'
init_dir=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lockfile=''
mandir='${datarootdir}/man'
nagios_grp=''
nagios_name=''
nagios_user=''
nagiostats_name=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local/nagios'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='${prefix}/etc'
target_alias=''

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

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""

configure: exit 77

请求各位帮助,谢谢。
...全文
519 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
lzg19861022 2014-03-27
  • 打赏
  • 举报
回复
给哪个文件授权啊
SweetTimeRose 2014-03-27
  • 打赏
  • 举报
回复
增加权限chmod +rwx 文件名

19,615

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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