Install problem help!!!

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
cojo
Posts: 2
Joined: Tue Jan 10, 2012 12:33 pm

Install problem help!!!

Post by cojo »

I am trying to compile Nagios 3.3.1 on RHEL 5U7 but keep getting this error:

[root@metroas71 nagios-3.2.3]# ./configure --with-command-group=nagcmd
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

Here is the error in config.log

Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)
configure:1809: $? = 0
configure:1811: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:1814: $? = 1
configure:1837: checking for C compiler default output file name
configure:1840: gcc conftest.c >&5
/usr/bin/ld: unrecognized option '--hash-style=gnu'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
configure:1843: $? = 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. */
Locked