Unable to compile and install Nagios

Hey everyone, I’m new to Nagios and am trying to get it installed. I am trying to follow the steps, but I get stuck in step #3 where it indicates to run ./configure --with-command-group=nagcmd.

===============================================================
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 --with-command-group=nagcmd

---------

Platform.

---------

hostname = sparta
uname -m = sun4u
uname -r = 5.10
uname -s = SunOS
uname -v = Generic_118833-33

/usr/bin/uname -p = sparc
/bin/uname -X = System = SunOS
Node = sparta
Release = 5.10
KernelID = Generic_118833-33
Machine = sun4u
BusType =
Serial =
Users =
OEM# = 0
Origin# = 1
NumCPU = 1

/bin/arch = sun4
/usr/bin/arch -k = sun4u
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/local/bin
PATH: /a/Nagios/downloads/SUNWspro/bin

-----------

Core tests.

-----------

configure:1352: checking for a BSD-compatible install
configure:1407: result: ./install-sh -c
configure:1426: checking build system type
configure:1444: result: sparc-sun-solaris2.10
configure:1452: checking host system type
configure:1466: result: sparc-sun-solaris2.10
configure:1521: checking for gcc
configure:1537: found /usr/local/bin/gcc
configure:1547: result: gcc
configure:1791: checking for C compiler version
configure:1794: gcc --version </dev/null >&5
ld.so.1: gcc: fatal: libintl.so.3: open failed: No such file or directory
./configure: line 1795: 18294 Killed $CC --version
configure:1797: $? = 137
configure:1799: gcc -v </dev/null >&5
ld.so.1: gcc: fatal: libintl.so.3: open failed: No such file or directory
./configure: line 1800: 18298 Killed $CC -v
configure:1802: $? = 137
configure:1804: gcc -V </dev/null >&5
ld.so.1: gcc: fatal: libintl.so.3: open failed: No such file or directory
./configure: line 1805: 18302 Killed $CC -V
configure:1807: $? = 137
configure:1830: checking for C compiler default output file name
configure:1833: gcc conftest.c >&5
ld.so.1: gcc: fatal: libintl.so.3: open failed: No such file or directory
./configure: line 1834: 18312 Killed $CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5
configure:1836: $? = 137
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:1875: error: C compiler cannot create executables
See `config.log’ for more details.

----------------

Cache variables.

----------------

ac_cv_build=sparc-sun-solaris2.10
ac_cv_build_alias=sparc-sun-solaris2.10
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=sparc-sun-solaris2.10
ac_cv_host_alias=sparc-sun-solaris2.10
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=’‘
GLIB_INCLUDE=’‘
GLIB_LIBS=’‘
HTTPD_CONF=’‘
INITDIR=’‘
INSTALL=’./install-sh -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/bash’
SNPRINTF_O=’‘
SOCKETLIBS=’‘
STRIP=’‘
THREADLIBS=’‘
TMPDIR=’‘
VERSION=’‘
XCDC=’‘
XCDH=’‘
XDDC=’‘
XDDH=’‘
XODC=’‘
XODH=’‘
XPDC=’‘
XPDH=’‘
XRDC=’‘
XRDH=’‘
XSDC=’‘
XSDH=’‘
ac_ct_CC=‘gcc’
bindir=’${exec_prefix}/bin’
build=‘sparc-sun-solaris2.10’
build_alias=’‘
build_cpu=‘sparc’
build_os=‘solaris2.10’
build_vendor=‘sun’
cgiurl=’‘
command_grp=’‘
command_user=’‘
datadir=’${prefix}/share’
exec_prefix=‘NONE’
host=‘sparc-sun-solaris2.10’
host_alias=’‘
host_cpu=‘sparc’
host_os=‘solaris2.10’
host_vendor=‘sun’
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=‘NONE’
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

============================================================

Can anyone assist me in figuring this one out… thanks …

Hi, it seems you have a problem with your LD_LIBRARY_PATH, or a really missing library :frowning:

ld.so.1: gcc: fatal: libintl.so.3: open failed: No such file or directory

I installed the libiconv and libintl as well, but still getting the same error… tuff trying to find some documentation on this stuff.