<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif"}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.BalloonTextChar
        {font-family:"Tahoma","sans-serif"}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
-->
</style><style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" lang="EN-US" link="blue" vlink="purple">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">You probably installed zlib (the runtime library) but not zlib-dev (the development compile-time library and headers).<br>
<div><br>
In many distros, the <i>libname </i>and <i>libname</i>-dev packages are separate. For compilation purposes, when it says you need
<i>libname</i>, you should install the <i>libname</i>-dev package.<br>
<br>
As soon as one lib is missing, then this will start a chain of dominoes and youll get lots of errors from the compile/install process. Deal with the missing things in the order they are reported.<br>
<br>
Steve<br>
<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: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF492534"><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 Jeff Nelson [jnelson@ofaoh.com]<br>
<b>Sent:</b> Thursday, 16 August 2012 2:55 a.m.<br>
<b>To:</b> mrtg@lists.oetiker.ch<br>
<b>Subject:</b> [mrtg] libpng ./configure error<br>
</font><br>
</div>
<div></div>
<div>
<div class="WordSection1">
<p class="MsoNormal">Hello,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I am a beginner Unix user and very new to compiling as I am not a programmer at all. I am running Ubuntu 12.04, I have been following the instructions for installation in mrtg-unix-guide.txt for mrtg-2.17.3</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">. I run through the process with zlib with no problem or errors.. When I execute:</p>
<p class="MsoNormal">sudo env CFLAGS=”-03 –fPIC” sudo ./configure –prefix=$INSTALL_DIR</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">The last line states: configure: error: zlib not installed.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">If I ignore that and continue on to the last step before moving to the mrtg directory and doing ./configure –prefix=/usr/local/mrtg-2, I get the error that **Ooops, one of many bad things happened which lists four possibilities dealing
with GD libraries, header files, shared directories, or missing libpng.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">However, I believe I’ve been pretty meticulous in following the instructions, installing the latest available versions of zlib, gd, and libpng.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Any advice or direction would be very much appreciated.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Jeff</p>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</div>
</body>
</html>