Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-31-2006, 06:15 PM
|
#1
|
Member
Registered: Jul 2005
Posts: 273
Rep:
|
Problem compiling Nagios 2.1
Hello all,
I'm having problems configuring nagios. I downloaded the program, untar'd it, then ran ./configure like I am supposed to.
Btw, this is nagios 2.1 for those who may want to know. My c compiler is gcc. Slackware linux 10.2
This is where the problem lies, I get the error --->
configure: error: C compiler cannot create executables
See `config.log' for more details.
I attached the log, as you can already see, hope it helps. I would like someone tell me why this is happening not just the fix for the problem.
charlie r
-------------------------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.59. Invocation command line was
$ ./configure --prefix=/usr/local/nagios --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-group=nagios
## --------- ##
## Platform. ##
## --------- ##
hostname = macbre
uname -m = i686
uname -r = 2.4.31
uname -s = Linux
uname -v = #6 Sun Jun 5 19:04:47 PDT 2005
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /opt/www/htdig/bin
PATH: /usr/lib/java/bin
PATH: /usr/lib/java/jre/bin
PATH: /opt/kde/bin
PATH: /usr/lib/qt/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1356: checking for a BSD-compatible install
configure:1411: result: /usr/bin/ginstall -c
configure:1430: checking build system type
configure:1448: result: i686-pc-linux-gnuoldld
configure:1456: checking host system type
configure:1470: result: i686-pc-linux-gnuoldld
configure:1525: checking for gcc
configure:1541: found /usr/bin/gcc
configure:1551: result: gcc
configure:1795: checking for C compiler version
configure:1798: gcc --version </dev/null >&5
gcc (GCC) 3.3.6
Copyright (C) 2003 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:1801: $? = 0
configure:1803: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/specs
Configured with: ../gcc-3.3.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking
Thread model: posix
gcc version 3.3.6
configure:1806: $? = 0
configure:1808: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1811: $? = 1
configure:1834: checking for C compiler default output file name
configure:1837: gcc conftest.c >&5
gcc: installation problem, cannot exec `as': No such file or directory
configure:1840: $? = 1
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:1879: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnuoldld
ac_cv_build_alias=i686-pc-linux-gnuoldld
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_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=i686-pc-linux-gnuoldld
ac_cv_host_alias=i686-pc-linux-gnuoldld
ac_cv_path_install='/usr/bin/ginstall -c'
ac_cv_prog_ac_ct_CC=gcc
## ----------------- ##
## Output variables. ##
## ----------------- ##
BASEEXTRALIBS=''
BROKERLIBS=''
BROKER_H=''
BROKER_LDFLAGS=''
BROKER_O=''
CC='gcc'
CFLAGS=''
CGIEXTRAS=''
COMMAND_OPTS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GDLIBS=''
INITDIR=''
INSTALL='/usr/bin/ginstall -c'
INSTALLPERLSTUFF=''
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=''
PERLDIR=''
PERLLIBS=''
PERLXSI_O=''
SET_MAKE=''
SHELL='/bin/sh'
SNPRINTF_O=''
SOCKETLIBS=''
STRIP=''
THREADLIBS=''
VERSION=''
XCDC=''
XCDH=''
XDDC=''
XDDH=''
XODC=''
XODH=''
XPDC=''
XPDH=''
XRDC=''
XRDH=''
XSDC=''
XSDH=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnuoldld'
build_alias=''
build_cpu='i686'
build_os='linux-gnuoldld'
build_vendor='pc'
cgiurl=''
command_grp=''
command_user=''
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-linux-gnuoldld'
host_alias=''
host_cpu='i686'
host_os='linux-gnuoldld'
host_vendor='pc'
htmurl=''
includedir='${prefix}/include'
infodir='${prefix}/info'
init_dir=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
lockfile=''
mandir='${prefix}/man'
nagios_grp=''
nagios_name=''
nagios_user=''
nagiostats_name=''
oldincludedir='/usr/include'
prefix='/usr/local/nagios'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
configure: exit 77
|
|
|
04-01-2006, 08:08 AM
|
#2
|
Member
Registered: Jul 2005
Posts: 273
Original Poster
Rep:
|
back to the top
|
|
|
04-01-2006, 09:32 AM
|
#3
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Rep:
|
Firstly, "gcc -V </dev/null >&5" is insane
Quote:
configure:1879: error: C compiler cannot create executables
|
Did you looked at the 1879th string in configure?
Generally this is a bad configure script and should be amended, be encouraged to report a bug. Meantime pay an attention to the pointed string.
|
|
|
04-01-2006, 09:55 AM
|
#4
|
Member
Registered: Jul 2005
Posts: 273
Original Poster
Rep:
|
Thanks for the reply. I unfortunately am not sure exactly what it should be. Or even how to get around this. I saw the error, but don't know what to do about it, or even how or why it got there. Sorry I'm an amateur.
|
|
|
04-01-2006, 10:01 AM
|
#5
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Rep:
|
output?
Code:
cat -n configure | grep -w 1879
|
|
|
04-01-2006, 03:55 PM
|
#6
|
Member
Registered: Jul 2005
Posts: 273
Original Poster
Rep:
|
Hello all,
I'm having problems configuring nagios. I downloaded the program, untar'd it, then ran ./configure like I am supposed to.
Btw, this is nagios 2.1 for those who may want to know. My c compiler is gcc. Slackware linux 10.2
This is where the problem lies, I get the error --->
configure: error: C compiler cannot create executables
See `config.log' for more details.
I attached the log, as you can already see, hope it helps. I would like someone tell me why this is happening not just the fix for the problem.
-------------------------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.59. Invocation command line was
$ ./configure --prefix=/usr/local/nagios --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-group=nagios
## --------- ##
## Platform. ##
## --------- ##
hostname = macbre
uname -m = i686
uname -r = 2.4.31
uname -s = Linux
uname -v = #6 Sun Jun 5 19:04:47 PDT 2005
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /opt/www/htdig/bin
PATH: /usr/lib/java/bin
PATH: /usr/lib/java/jre/bin
PATH: /opt/kde/bin
PATH: /usr/lib/qt/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1356: checking for a BSD-compatible install
configure:1411: result: /usr/bin/ginstall -c
configure:1430: checking build system type
configure:1448: result: i686-pc-linux-gnuoldld
configure:1456: checking host system type
configure:1470: result: i686-pc-linux-gnuoldld
configure:1525: checking for gcc
configure:1541: found /usr/bin/gcc
configure:1551: result: gcc
configure:1795: checking for C compiler version
configure:1798: gcc --version </dev/null >&5
gcc (GCC) 3.3.6
Copyright (C) 2003 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:1801: $? = 0
configure:1803: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.3.6/specs
Configured with: ../gcc-3.3.6/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking
Thread model: posix
gcc version 3.3.6
configure:1806: $? = 0
configure:1808: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1811: $? = 1
configure:1834: checking for C compiler default output file name
configure:1837: gcc conftest.c >&5
gcc: installation problem, cannot exec `as': No such file or directory
configure:1840: $? = 1
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:1879: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnuoldld
ac_cv_build_alias=i686-pc-linux-gnuoldld
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_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=i686-pc-linux-gnuoldld
ac_cv_host_alias=i686-pc-linux-gnuoldld
ac_cv_path_install='/usr/bin/ginstall -c'
ac_cv_prog_ac_ct_CC=gcc
## ----------------- ##
## Output variables. ##
## ----------------- ##
BASEEXTRALIBS=''
BROKERLIBS=''
BROKER_H=''
BROKER_LDFLAGS=''
BROKER_O=''
CC='gcc'
CFLAGS=''
CGIEXTRAS=''
COMMAND_OPTS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GDLIBS=''
INITDIR=''
INSTALL='/usr/bin/ginstall -c'
INSTALLPERLSTUFF=''
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=''
PERLDIR=''
PERLLIBS=''
PERLXSI_O=''
SET_MAKE=''
SHELL='/bin/sh'
SNPRINTF_O=''
SOCKETLIBS=''
STRIP=''
THREADLIBS=''
VERSION=''
XCDC=''
XCDH=''
XDDC=''
XDDH=''
XODC=''
XODH=''
XPDC=''
XPDH=''
XRDC=''
XRDH=''
XSDC=''
XSDH=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnuoldld'
build_alias=''
build_cpu='i686'
build_os='linux-gnuoldld'
build_vendor='pc'
cgiurl=''
command_grp=''
command_user=''
datadir='${prefix}/share'
exec_prefix='NONE'
host='i686-pc-linux-gnuoldld'
host_alias=''
host_cpu='i686'
host_os='linux-gnuoldld'
host_vendor='pc'
htmurl=''
includedir='${prefix}/include'
infodir='${prefix}/info'
init_dir=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
lockfile=''
mandir='${prefix}/man'
nagios_grp=''
nagios_name=''
nagios_user=''
nagiostats_name=''
oldincludedir='/usr/include'
prefix='/usr/local/nagios'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
configure: exit 77
Last edited by neocontrol; 05-06-2010 at 01:41 PM.
|
|
|
04-01-2006, 04:56 PM
|
#7
|
Member
Registered: Jul 2005
Posts: 273
Original Poster
Rep:
|
i also tried to run another configure file for a differnt program. it wasnt able to compile executable either. i imagine that there is something wrong with my compiler? if there is, how would i know rather than guessing what could be wrong?
|
|
|
All times are GMT -5. The time now is 09:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|