Hi
Ich hab jetzt auch dieses tolle Problem mit dem libpng, hab auch schon vieles versucht, nur es klappt alles nicht.
Hab dann nochmal das hier im Internet gefunden nur als Anfänger tut man sich so schon schwer genug und das ist ja jetzt auch noch in Englisch, wenn das mal jemand "übersetzen" könnte oder mal testen könnte ??
Vielleicht ist das ja die Lösung ?
MFG
Marco
---------------------------------------------------------------------------------
/usr/lib/libpng.so.3
/usr/lib/libpng.so.3.1.2.2
/usr/lib/libpng12.so.0
/usr/lib/libpng12.so.0.1.2.2
/usr/lib/libpng.so.2.1.0.13
/usr/lib/libpng.so.2
You're missing the standard libpng.so - it should be symlinked to one of the
real .so files.
I've seen these links missing in a couple of cases in RH when installing
from rpm's - usually where RH is providing two incompatible libraries (as
they are here). RH then patches the various makefiles to refer to one or
the other by their more distinguished name. I'm not going to do that in
ntop.
However, you indicated that you had downloaded the source and installed
libpng from that. This leads me to wonder if you forgot the parameter to
make a shared library during the ./configure of libpng?
You'll notice that you DO have the link here:
/usr/local/lib/libpng.so
Which argues that you installed libpng from the 1.2.5 source into /usr/local
not /usr ... giving you THREE versions of libpng installed on the system.
If THAT's the case, then Luca's recent change to configure to add /usr/local
as one of the standard locations to look for libraries and includes should
now find THIS version. Still, you probably want to clean that up or it will
bite you someday down the road.
If it were my box, I would delete the /usr/local copy and create the symlink
in /usr/lib and then send a nasty gram to RedHat. Oh, yeah, I already have
done this...
I'll add it to the FAQ.
-----Burton
-----Original Message-----
From: ntop-admin@unipi.it [mailto:ntop-admin@unipi.it]On Behalf Of Adam
Beach
Sent: Friday, August 29, 2003 1:24 PM
To: Ntop
Subject: [Ntop] Compile Help ERROR: libpng header or library routines
are missing
Hello,
I have:
Red Hat 9
CPU: PII 266
256MB of memory
3c905c NIC
ASUS P2L97 Motherboard.
gcc-3.2.2-5
I downloaded the 8-28-03 cvs of ntop.
When I first tried running configure for ntop, it could not find png.h and
said I should install libpng or libpng-dev. I downloaded libpng from
www.libpng.org, configured, make'd and make install'd the 1.2.5 version of
libpng successfully. It now finds png.h hower is unable to find a the
function png_read_info in wherever it looks for png_read_info.
This is the last couple lines of output from configure.
checking for gd.h... yes
checking for gdImageDestroy in -lgd... yes
checking for libpng...
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for main in -lpng... no
*******************************************************************
*
* ERROR: libpng header or library routines are missing
* (yes means it was found, no means it was not found)
*
* png.h...yes
* png_read_info() in -lpng...
*
*>>> No way to proceed.
*
*??? Install libpng (and/or libpng-devel), check www.libpng.org
*??? and Rerun ./configure
*
*******************************************************************
Locate (after updating the locate db) libpng returns this:
/usr/lib/libpng.so.3
/usr/lib/libpng.so.3.1.2.2
/usr/lib/libpng12.so.0
/usr/lib/libpng12.so.0.1.2.2
/usr/lib/libpng.so.2.1.0.13
/usr/lib/libpng.so.2
/usr/share/doc/libpng-1.2.2
/usr/share/doc/libpng-1.2.2/example.c
/usr/share/doc/libpng-1.2.2/CHANGES
/usr/share/doc/libpng-1.2.2/README
/usr/share/doc/libpng-1.2.2/TODO
/usr/share/doc/libpng-1.2.2/libpng.txt
/usr/share/doc/libpng10-1.0.13
/usr/share/doc/libpng10-1.0.13
/usr/share/doc/libpng10-1.0.13/example.c
/usr/share/doc/libpng10-1.0.13/CHANGES
/usr/share/doc/libpng10-1.0.13/README
/usr/share/doc/libpng10-1.0.13/TODO
/usr/share/doc/libpng10-1.0.13/libpng.txt
/usr/local/bin/libpng12-config
/usr/local/bin/libpng-config
/usr/local/include/libpng12
/usr/local/include/libpng12/png.h
/usr/local/include/libpng12/pngconf.h
/usr/local/include/libpng
/usr/local/lib/libpng12.a
/usr/local/lib/libpng.a
/usr/local/lib/libpng12.so.0.1.2.5
/usr/local/lib/libpng.so.3.1.2.5
/usr/local/lib/libpng.so.3
/usr/local/lib/libpng.so
/usr/local/lib/libpng12.so.0
/usr/local/lib/libpng12.so
/usr/local/lib/pkgconfig/libpng12.pc
/usr/local/lib/pkgconfig/libpng.pc
/usr/local/man/man3/libpng.3
/usr/local/man/man3/libpngpf.3
locate png.h returns:
/usr/local/include/libpng12/png.h
/usr/local/include/png.h
I have tried using:
configure --with-libpng-lib /usr/local/lib
and:
configure --with-libpng-include /usr/local/include
Other info:
/usr/include/png.h is sym linked to /usr/include/libpng12/png.h
I did not create the link so I assume the make install of libpng did.
Grep'ing png.h for png_read_info returns:
extern PNG_EXPORT(void,png_read_info) PNGARG((png_structp png_ptr
Adam Beach
Weather Central, Inc.