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 [email protected]<mailto:[email protected]> Ph: +64 9 373 7599 ext 86487 ________________________________ From: [email protected] [[email protected]] on behalf of Jeff Nelson [[email protected]] Sent: Thursday, 16 August 2012 2:55 a.m. To: [email protected] 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
_______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
