<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style>
<!--
.EmailQuote
        {margin-left:1pt;
        padding-left:4pt;
        border-left:#800000 2px solid}
-->
</style><style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Looks to me as if your GD library was not compiled with PNG support (and maybe not JPG or GIF support either). Where did you get your GD library from? Might be time to upgrade
or reinstall.<br>
<br>
Steve<br>
<div><br>
<div style="font-family: Tahoma; font-size: 13px;">
<div style="font-family: Tahoma; font-size: 13px;"><strong>Steve Shipway</strong></div>
<div style="font-family: Tahoma; font-size: 13px;">University of Auckland ITS</div>
<div style="font-family: Tahoma; font-size: 13px;"><em>UNIX Systems Design Lead</em></div>
<div style="font-family: Tahoma; font-size: 13px;"><a href="mailto:s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</a></div>
<div style="font-family: Tahoma; font-size: 13px;">Ph: +64 9 373 7599 ext 86487</div>
<div style="font-family: Tahoma; font-size: 13px;"><em></em> </div>
</div>
</div>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF313738"><font color="#000000" face="Tahoma" size="2"><b>From:</b> mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch [mrtg-bounces+s.shipway=auckland.ac.nz@lists.oetiker.ch] on behalf of Anand, Sakshi [sa185043@ncr.com]<br>
<b>Sent:</b> Monday, 25 April 2011 7:31 p.m.<br>
<b>To:</b> mrtg@lists.oetiker.ch<br>
<b>Subject:</b> [mrtg] Issue configuring MRTG<br>
</font><br>
</div>
<div></div>
<div><font face="Arial" size="2">
<div style="margin-top: 5pt; margin-bottom: 5pt;">All, </div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">I am getting following error when configuring MRTG. I want to use it to measure bandwidth using Nagios.
</div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">checking for gdImageGif in -lgd... no
</div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">checking for gdImagePng in -lgd... no
</div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">checking for gdImagePng_jpg in -lgd... no
</div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">checking for gdImagePng_jpg_ft in -lgd... no
</div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">checking gd.h usability... yes </div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">checking gd.h presence... yes </div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">checking for gd.h... yes </div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">** Ooops, one of many bad things happened:
</div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">a) You don't have the GD library installed. Get it from
<a href="http://www.boutell.com" target="_blank"><font color="#0000FF"><u>http://www.boutell.com</u></font></a>, compile it and use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify its location. You might also have to use --with-z-inc, --with-z-lib
and --with-png-inc, --with-png-lib for gd versions 1.6 and higher. Check config.log for more information on the problem.
</div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">b) You have the GD library installed, but not the gd.h header file. Download the source (see above) and use --with-gd-inc=DIR to specify where the file can be found.
</div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">c) You have the library and the header file installed, but you also have a shared GD library in the same directory. Remove the shared library files and/or links (e.g. libgd.so.2.0.0, libgd.so and libgd.so.2).
This is especially likely if you're using a recent (post 1.8.4) version of GD and didn't configure it with --disable-shared.
</div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">d) You have gd library installed and also it's headers, but you are missing libpng (and headers) or freetype (and headers) (mrtg does not use freetype, but if your copy of gd is precompiled against it, you have
to install it … </div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">I have verified all the 3 points mentioned above but everything seems to be in place.</div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">Please help. </div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">Thanks & Regards, </div>
<div style="margin-top: 5pt; margin-bottom: 5pt;">Sakshi Anand</div>
<div> </div>
<div><font face="Arial, sans-serif"> </font></div>
</font></div>
</div>
</div>
</body>
</html>