Page 1 of 1

Install problem help!!!

Posted: Tue Jan 10, 2012 4:21 pm
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. */