Nagios Install without gd

Naman Latif naman.latif at inamed.com
Wed Apr 7 18:34:52 CEST 2004


It finds the gd lib during ./configure as

++++++++++++++++++++++++
checking for gdImagePng in -lgd (order 1)... yes
GD library was found!
++++++++++++++++++++++++

And comes up with error during "make all" as

++++++++++++++++++
In file included from trends.c:37:
/usr/local/include/gd.h:21:19: gd_io.h: No such file or directory
In file included from trends.c:37:
/usr/local/include/gd.h:93: parse error before "in"
/usr/local/include/gd.h:108: parse error before "in"
/usr/local/include/gd.h:111: parse error before "in"
/usr/local/include/gd.h:114: parse error before "in"
/usr/local/include/gd.h:158: parse error before "gdIOCtx"
/usr/local/include/gd.h:161: parse error before "gdIOCtx"
/usr/local/include/gd.h:164: parse error before '*' token
/usr/local/include/gd.h:168: parse error before "gdIOCtx"
/usr/local/include/gd.h:171: parse error before '*' token
/usr/local/include/gd.h:220: parse error before '*' token
/usr/local/include/gd.h:221: parse error before '*' token
/usr/local/include/gd.h:222: parse error before '*' token
trends.c:38:71: gdfonts.h: No such file or directory
trends.c: In function `main':
trends.c:686: `gdFontSmall' undeclared (first use in this function)
trends.c:686: (Each undeclared identifier is reported only once
trends.c:686: for each function it appears in.)
trends.c: In function `draw_timestamp':
trends.c:2589: `gdFontSmall' undeclared (first use in this function)
trends.c: In function `draw_time_breakdowns':
trends.c:2630: `gdFontSmall' undeclared (first use in this function)
make[1]: *** [trends.cgi] Error 1
make[1]: Leaving directory `/export/spare/un-install-sw/nagios-1.2/cgi'
make: *** [all] Error 2
++++++++++++++++++

Since I won't be using this anyways, so didn't want to spend any time on
trouble-shooting this and was wondering, if I can just disable it.
"--disable-statusmap" still produces the same result.

Regards \\ Naman

-----Original Message-----
From: Marc Powell [mailto:marc at ena.com] 
 
> I tried --without-gd, --without-gd-lib  in the ./configure script,
> but it still tries to use gd. 


Yes, it's possible and easy. There's actually nothing special that you
need to do at all. If nagios does not find the GD libraries during
configure it simply doesn't compile the trends, statusmap and histogram
cgi's that depend on it. Everything else will compile and install just
fine. What is the error that you are seeing? Maybe passing the
'--disable-statusmap' directive to configure might help.

--
Marc


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
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