[afnog] Installing nagios on solaris 9

David G. Chima dchima at malswitch.com
Fri Jun 1 05:41:51 UTC 2007


Hello AfNOG,
I have a Sun Ultra Enterprise 450 machine on which I have successfully 
installed Solaris 9. I want to install nagios on it so we can use it to 
monitor our WAN. I should think I have been installing this package 
according to the instructions in the INSTALLATION file. Here is what I 
did and what I got.
=============================================
  bash-2.05$ ./configure --prefix=/etc/nagios 
--with-cgiurl=/nagios/cgi-bin --withh-nagios-user=nagios 
--with-nagios-group=apache
  checking for a BSD-compatible install... ./install-sh -c
  checking build system type... sparc-sun-solaris2.9
  checking host system type... sparc-sun-solaris2.9
  checking for gcc... no
  checking for cc... cc
  checking for C compiler default output file name... configure: error: 
C compilerutables
See `config.log' for more details.

============================================
Here is the config.log file.
============================================
  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=/etc/nagios --with-cgiurl=/nagios/cgi-bin 
--with-html=/htdocs --with-nagios-user=nagios --with-nagios-group=apache

  ## --------- ##
  ## Platform. ##
  ## --------- ##

  hostname = sun
  uname -m = sun4u
  uname -r = 5.9
  uname -s = SunOS
  uname -v = Generic_112233-03

  /usr/bin/uname -p = sparc
  /bin/uname -X     = System = SunOS
  Node = sun
  Release = 5.9
  KernelID = Generic_112233-03
  Machine = sun4u
  BusType = <unknown>
  Serial = <unknown>
  Users = <unknown>
  OEM# = 0
  Origin# = 1
  NumCPU = 2

  /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/bin
  PATH: .
  PATH: /usr/dt/bin
  PATH: /usr/openwin/bin
  PATH: /bin
  PATH: /usr/ucb


  ## ----------- ##
  ## Core tests. ##
  ## ----------- ##

  configure:1356: checking for a BSD-compatible install
  configure:1411: result: ./install-sh -c
  configure:1430: checking build system type
  configure:1448: result: sparc-sun-solaris2.9
  configure:1456: checking host system type
  configure:1470: result: sparc-sun-solaris2.9
  configure:1525: checking for gcc
  configure:1554: result: no
  configure:1605: checking for cc
  configure:1621: found /usr/ucb/cc
  configure:1631: result: cc
  configure:1795: checking for C compiler version
  configure:1798: cc --version </dev/null >&5
  /usr/ucb/cc:  language optional software package not installed
  configure:1801: $? = 1
  configure:1803: cc -v </dev/null >&5
  /usr/ucb/cc:  language optional software package not installed
  configure:1806: $? = 1
  configure:1808: cc -V </dev/null >&5
  /usr/ucb/cc:  language optional software package not installed
  configure:1811: $? = 1
  configure:1834: checking for C compiler default output file name
  configure:1837: cc    conftest.c  >&5
  /usr/ucb/cc:  language optional software package not installed
  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=sparc-sun-solaris2.9
  ac_cv_build_alias=sparc-sun-solaris2.9
  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.9
  ac_cv_host_alias=sparc-sun-solaris2.9
  ac_cv_prog_ac_ct_CC=cc

  ## ----------------- ##
  ## Output variables. ##
  ## ----------------- ##

  BASEEXTRALIBS=''
  BROKERLIBS=''
  BROKER_H=''
  BROKER_LDFLAGS=''
  BROKER_O=''
  CC='cc'
  CFLAGS=''
  CGIEXTRAS=''
  COMMAND_OPTS=''
  CPP=''
  CPPFLAGS=''
  DEFS=''
  ECHO_C=''
  ECHO_N='-n'
  ECHO_T=''
  EGREP=''
  EXEEXT=''
  GDLIBS=''
  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=''
  VERSION=''
  XCDC=''
  XCDH=''
  XDDC=''
  XDDH=''
  XODC=''
  XODH=''
  XPDC=''
  XPDH=''
  XRDC=''
  XRDH=''
  XSDC=''
  XSDH=''
  ac_ct_CC='cc'
  bindir='${exec_prefix}/bin'
  build='sparc-sun-solaris2.9'
  build_alias=''
  build_cpu='sparc'
  build_os='solaris2.9'
  build_vendor='sun'
  cgiurl=''
  command_grp=''
  command_user=''
  datadir='${prefix}/share'
  exec_prefix='NONE'
  host='sparc-sun-solaris2.9'
  host_alias=''
  host_cpu='sparc'
  host_os='solaris2.9'
  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='/etc/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

========================================
I need help. Is there anyone to open me up.

Regards

David

-- 
---------------------------
Malswitch
Old Reserve Bank Building
Victoria Avenue
P.O. Box 384, Blantyre
Tel: 01822444 Ext: 6126
dchima at malswitch.com
---------------------------

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the afnog mailing list