Install problem help!!!
Posted: Tue Jan 10, 2012 4:21 pm
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
$? = 0
configure
gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure
$? = 1
configure
checking for C compiler default output file name
configure
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
$? = 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. */
[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
configure
gcc: '-V' option must have argument
configure
configure
configure
/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
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */