Tip how to compile (nagios whith) histogram.cgi,statusmap.cgi, tr ends.cgi
Kraus, Markus
Markus.Kraus.hp at sysde.eads.net
Mon Mar 10 12:14:32 CET 2003
Hello @,
I often read about problems in compiling these special cgis. Besides I had
the same problems. Now I have maybe found the reason (for me it works).
# After installing everything recommended in particular:
########################################################
rpm -qa | grep gd
#gd-devel-1.8.4-9
#gd-1.8.4-9
rpm -qa | grep jpeg
#libjpeg-6b-21
#libjpeg-devel-6b-21
rpm -qa | grep png
#libpng-1.2.2-6
#libpng10-1.0.13-5
#libpng10-devel-1.0.13-5
# Test the following:
#####################
find /usr -name "libgd.so*"
#/usr/lib/libgd.so.1
#/usr/lib/libgd.so.1.8
#/usr/lib/libgd.so.1.8.4
#/usr/lib/libgd.so
find /usr -name "libjpeg.so*"
#/usr/lib/libjpeg.so.62
#/usr/lib/libjpeg.so.62.0.0
#/usr/lib/libjpeg.so
find /usr -name "libpng.so*"
#/usr/lib/libpng.so.3.1.2.2
#/usr/lib/libpng.so.3
#/usr/lib/libpng.so.2.1.0.13
#/usr/lib/libpng.so.2
# So far so good. Everything is in place besides "/usr/lib/libpng.so", so
create a link:
############################################################################
############
cd /usr/lib/
ln -s libpng12.so.0.1.2.2 libpng.so
# Add the Libraries path to "/etc/ld.so.conf" and update:
#########################################################
echo "/usr/lib" >> /etc/ld.so.conf
ldconfig
# configure/make:
#################
make clean # if you make already a ./configure that doesn't
work
./configure --with-gd-lib=/usr/lib --with-gd-inc=/usr/include
make all # you don't need to 'make install' if you have an
running nagios installation
# just copy the missing cgis from .../cgi/
That's it! On my RedHat 8.0 Server everything works fine with this
workaround.
Best regards
Markus
_____________________________________________________________
Markus Kraus UNIX Service Operations
_____________________________________________________________
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list