<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin-top:0in;
margin-right:0in;
margin-bottom:8.0pt;
margin-left:0in;
line-height:106%;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><div style='mso-element:para-border-div;border:none;border-left:solid #E5E5E5 1.0pt;padding:0in 0in 0in 0in'><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'>I am getting following error when configuring MRTG. I want to use it to measure bandwidth using Nagios.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'>checking for gdImageGif in -lgd... no<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'>checking for gdImagePng in -lgd... no<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'>checking for gdImagePng_jpg in -lgd... no<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'>checking for gdImagePng_jpg_ft in -lgd... no<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'>checking gd.h usability... yes<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'>checking gd.h presence... yes<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'>checking for gd.h... yes<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'>** Ooops, one of many bad things happened:<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> a) You don't have the GD library installed.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> Get it from <a href="http://www.boutell.com/"><span style='color:#0077AA;text-decoration:none'>http://www.boutell.com</span></a>, compile it and<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> its location. You might also have to use --with-z-inc,<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> --with-z-lib and --with-png-inc, --with-png-lib for gd<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> versions 1.6 and higher. Check config.log for more<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> information on the problem.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> b) You have the GD library installed, but not the gd.h<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> header file. Download the source (see above) and use<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> --with-gd-inc=DIR to specify where the file can be found.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> c) You have the library and the header file installed, but<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> you also have a shared GD library in the same directory.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> Remove the shared library files and/or links (e.g.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> libgd.so.2.0.0, libgd.so and libgd.so.2). This is especially<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> likely if you're using a recent (post 1.8.4) version of GD<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> and didn't configure it with --disable-shared.<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'><o:p> </o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> d) You have gd library installed and also it's headers, but you are<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> missing libpng (and headers) or freetype (and headers)<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> (mrtg does not use freetype, but if your copy of gd is precompiled<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt;line-height:13.5pt;border:none;padding:0in'><span style='font-size:10.0pt;font-family:"Courier New";color:#555555'> against it, you have to install it ...<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>