Solaris 8 and Nagios 1.1 install > compiling problem

From: sunmanagers@freehome.ch
Date: Sat Dec 06 2003 - 17:40:41 EST


Hi Sunmanages

I'm trying to install nagios (Solaris 8 sparc with lates
recommanded_cluster) because of recommandation and I'm not able to finishing
the installation because of not finding libraries for jpeg, png, gd when
configuring nagios. I tried different ways before beginning the configure of
nagios with:

LD_LIBRARY_PATH=/opt/gd-2.0.15/lib:/opt/freetype-2.1.5/lib:/opt/jpeg-6b/lib:
/opt/libpng-1.2.5/lib
export LD_LIBRARY_PATH

Or

crle -c /var/ld/ld.config -l
/usr/lib:/opt/gd-2.0.15/lib:/opt/freetype-2.1.5/lib:/opt/jpeg-6b/lib:/opt/li
bpng-1.2.5/lib

(I know that this is not recommanded to use crle but it was a try!)

All other compilations for png, jpeg, gd etc. are finished with no errors!
The configure with nagios will end allways with the same error:

checking for gdImagePng in -lgd (order 1)... no
checking for gdImagePng in -lgd (order 2)... no
checking for gdImagePng in -lgd (order 3)... no

*** GD, PNG, and/or JPEG libraries could not be located... *********

Here the full installation witch was done until ./configure for nagios:

***************** BEGINN INSTALLATION OF NAGIOS *****************

mkdir /root/pkg
cd /root/pkg
mv *.gz /root/pkg
gzip -d make-3.80-sol8-sparc-local.gz
gzip -d autoconf-2.57-sol8-sparc-local.gz
pkgadd -d make-3.80-sol8-sparc-local
pkgadd -d autoconf-2.57-sol8-sparc-local

pkginfo | grep SMC

application SMCautoc autoconf
application SMCmake make

SUNWzlib (CD 2/2)
SUNWzlibx (CD 2/2)

mount -F hsfs -o ro /dev/dsk/c0t2d0s0 /cdrom
cd /cdrom/Solaris_8/Product/
pkgadd -d ./ SUNWzlib SUNWzlibx
umount /cdrom
rm -rf /cdrom

mkdir /root/freetype
cd /root/freetype
mv freetype-2.1.5.tar /root/freetype
tar xvf freetype-2.1.5.tar
cd freetype-2.1.5

GNUMAKE=/usr/local/bin/make ./configure --help

GNUMAKE=/usr/local/bin/make ./configure \
--prefix=/opt/freetype-2.1.5 \
--exec-prefix=/opt/freetype-2.1.5 \
--oldincludedir=/opt/freetype-2.1.5/usr/include \
--enable-shared=yes \
--enable-static=yes \
--enable-fast-install=yes \
--disable-libtool-lock \
--without-gnu-ld

/usr/local/bin/make
find / > /root/freetype/orig
/usr/local/bin/make install
find / > /root/freetype/diff
diff /root/freetype/orig /root/freetype/diff | more

mkdir /root/jpegsr6
cd /root/jpegsr6
mv jpegsrc.v6b.tar.gz /root/jpegsr6
gzip -dc jpegsrc.v6b.tar.gz | tar xvf -
cd jpeg-6b

./configure --help

./configure \
--prefix=/opt/jpeg-6b \
--exec-prefix=/opt/jpeg-6b \
--oldincludedir=/opt/jpeg-6b/usr/include \
--without-x-includes \
--without-x-libraries \
--enable-shared \
--enable-static

make
make test
find / > /root/jpegsr6/orig
Make install
find / > /root/jpegsr6/diff
diff /root/jpegsr6/orig /root/jpegsr6/diff | more

mkdir /root/libpng
cd /root/libpng
mv libpng-1.2.5.tar.gz /root/libpng
gzip -dc libpng-1.2.5.tar.gz | tar xvf -
cd libpng-1.2.5

cp scripts/makefile.solaris /root/libpng/libpng-1.2.5/makefile

vi /root/libpng/libpng-1.2.5/makefile
prefix=/opt/libpng-1.2.5
ZLIBLIB=/usr/include
ZLIBINC=/usr/include

make test
pngtest pngnow.png
find / > /root/libpng/orig
mkdir /opt/libpng-1.2.5/
make install
find / > /root/libpng/diff
diff /root/libpng/orig /root/libpng/diff | more

mkdir /root/gd
cd /root/gd
mv gd-2.0.15.tar.gz /root/gd
gzip -dc gd-2.0.15.tar.gz | tar xvf -
cd gd-2.0.15

./configure --help

./configure \
--prefix=/opt/gd-2.0.15 \
--exec-prefix=/opt/gd-2.0.15 \
--oldincludedir=/opt/gd-2.0.15/usr/include \
--enable-shared=yes \
--enable-static=yes \
--enable-fast-install=yes \
--without-gnu-ld \
--without-x \
--without-libiconv-prefix \
--with-png=/opt/libpng-1.2.5 \
--with-freetype=/opt/freetype-2.1.5 \
--with-jpeg=/opt/jpeg-6b \
--without-xpm

make
find / > /root/gd/orig
make install
find / > /root/gd/diff
diff /root/gd/orig /root/gd/diff | more

mkdir /root/nagios
cd /root/nagios
mv nagios-1.1.tar.gz /root/nagios/
gzip -dc nagios-1.1.tar.gz | tar xvf -
cd nagios-1.1

mkdir /opt/nagios-1.1
chown root:other /opt/nagios-1.1
chmod 755 /opt/nagios-1.1

mkdir /export/webdir/cgi-bin/nagios
chown root:apache /export/webdir/cgi-bin/nagios
chmod 750 /export/webdir/cgi-bin/nagios

mkdir /export/webdir/nagios
chown admin:admin /export/webdir/nagios
chmod 755 /export/webdir/nagios

groupadd -g 2000 nagios
useradd -u 2000 -g 2000 -d /dev/null -s /dev/null -c Nagios_Mail_Daemon
nagios

passwd -l nagios
cat /etc/passwd | cut -f1 -d: > /etc/ftpusers

./configure --help

./configure \
--prefix=/opt/nagios-1.1 \
--exec-prefix=/opt/nagios-1.1 \
--oldincludedir=/opt/nagios-1.1/usr/include \
--with-nagios-user=nagios \
--with-nagios-grp=nagios \
--with-command-user=root \
--with-command-grp=root \
--with-init-dir=/etc/init.d \
--with-lockfile=/var/run/nagios.lock \
--without-mysql-xdata \
--without-pgsql-xdata \
--without-mysql-status \
--without-pgsql-status \
--with-default-status \
--without-mysql-comments \
--without-pgsql-comments \
--with-default-comments \
--without-mysql-extinfo \
--without-pgsql-extinfo \
--with-default-extinfo \
--with-template-extinfo \
--without-mysql-retention \
--without-pgsql-retention \
--with-default-retention \
--with-default-objects \
--with-template-objects \
--with-default-perfdata \
--with-file-perfdata \
--without-mysql-downtime \
--without-pgsql-downtime \
--with-default-downtime \
--without-mysql-lib \
--without-mysql-inc \
--without-pgsql-lib \
--without-pgsql-inc \
--with-mail=/usr/lib/sendmail \
--with-cgiurl=/cgi-bin/nagios \
--with-htmurl=/nagios \
--with-gd-lib=/opt/gd-2.0.15/lib \
--with-gd-inc=/opt/gd-2.0.15/include \

..................................................
..................................................
..................................................
..................................................
..................................................
..................................................

checking for gdImagePng in -lgd (order 1)... no
checking for gdImagePng in -lgd (order 2)... no
checking for gdImagePng in -lgd (order 3)... no

*** GD, PNG, and/or JPEG libraries could not be located... *********

Boutell's GD library is required to compile the statusmap, trends
and histogram CGIs. Get it from http://www.boutell.com/gd/, compile
it, and use the --with-gd-lib and --with-gd-inc arguments to specify
the locations of the GD library and include files.

NOTE: In addition to the gd-devel library, you'll also need to make
      sure you have the png-devel and jpeg-devel libraries installed
      on your system.

NOTE: After you install the necessary libraries on your system:
      1. Make sure /etc/ld.so.conf has an entry for the directory in
         which the GD, PNG, and JPEG libraries are installed.
      2. Run 'ldconfig' to update the run-time linker options.
      3. Run 'make clean' in the Nagios distribution to clean out
         any old references to your previous compile.
      4. Rerun the configure script.

NOTE: If you can't get the configure script to recognize the GD libs
      on your system, get over it and move on to other things. The
      CGIs that use the GD libs are just a small part of the entire
      Nagios package. Get everything else working first and then
      revisit the problem. Make sure to check the nagios-users
      mailing list archives for possible solutions to GD library
      problems when you resume your troubleshooting.

********************************************************************

checking for traceroute... /usr/sbin/traceroute
checking for snprintf... yes
checking for type va_list... yes
checking for perl... /usr/bin/perl
updating cache ./config.cache
creating ./config.status
creating Makefile
creating subst
creating pkginfo
creating base/Makefile
creating common/Makefile
creating contrib/Makefile
creating cgi/Makefile
creating html/Makefile
creating xdata/Makefile
creating daemon-init
creating html/index.html
creating html/side.html
creating common/config.h
creating common/snprintf.h
creating base/nagios.h
creating cgi/cgiutils.h

..................................................
..................................................
..................................................
..................................................
Creating sample config files in sample-config/ ...

*** Configuration summary for nagios 1.1 06-02-2003 ***:

 General Options:
 -------------------------
        Nagios executable: nagios
        Nagios user/group: nagios,nagios
       Command user/group: root,root
            Embedded Perl: no
        Install ${prefix}: /opt/nagios-1.1
                Lock file: /var/run/nagios.lock
           Init directory: /etc/init.d

 Web Interface Options:
 ------------------------
                 HTML URL: http://localhost/nagios/
                  CGI URL: http://localhost/cgi-bin/nagios/
 Traceroute (used by WAP): /usr/sbin/traceroute

 External Data Routines:
 ------------------------
              Status data: Default (text file)
              Object data: Template-based (text file)
             Comment data: Default (text file)
            Downtime data: Default (text file)
           Retention data: Default (text file)
          Peformance data: File
       Extended info data: Template-based (text file)

Review the options above for accuracy. If they look okay,
type 'make all' to compile the main program and CGIs.

***************** END INSTALLATION OF NAGIOS *****************

Please help I'm trying to solve the problem now 2 days but I don't
understand what is missing! What must be done? I also tried the whole thing
with sunfreeware packages but allways the same manner and the same error?
Please help; will summary the whole documentation etc. Thanks in advanced
for your help...! For all Sunmanagers are very nice weekend :-)

Andrea
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:38 EDT