[mrtg] libpng ./configure error

Steve Shipway s.shipway at auckland.ac.nz
Wed Aug 15 23:43:26 CEST 2012


You probably installed zlib (the runtime library) but not zlib-dev (the development compile-time library and headers).

In many distros, the libname and libname-dev packages are separate.  For compilation purposes, when it says you need libname, you should install the libname-dev package.

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.

Steve

Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
s.shipway at auckland.ac.nz<mailto:s.shipway at auckland.ac.nz>
Ph: +64 9 373 7599 ext 86487

________________________________
From: mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch [mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] on behalf of Jeff Nelson [jnelson at ofaoh.com]
Sent: Thursday, 16 August 2012 2:55 a.m.
To: mrtg at lists.oetiker.ch
Subject: [mrtg] libpng ./configure error

Hello,

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

. I run through the process with zlib with no problem or errors.. When I execute:
sudo env CFLAGS=”-03 –fPIC” sudo ./configure –prefix=$INSTALL_DIR

The last line states: configure: error: zlib not installed.

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.

However, I believe I’ve been pretty meticulous in following the instructions, installing the latest available versions of zlib, gd, and libpng.

Any advice or direction would be very much appreciated.

Thanks,

Jeff

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20120815/80847eea/attachment.htm 


More information about the mrtg mailing list