Benny, Benny, Benny - You of all people...  it's in docs/FAQ:
 
Q. When I run ./configure, it finds png.h but not libpng:
      *******************************************************************
      *
      * 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
      *
      *******************************************************************
A. You're missing libpng.so.  Look for it (locate libpng) and tell ntop
   where it is via the --with-png-lib= parameter.
 

Q. I seem to be missing libpng.so - when I do locate libpng, it finds:
      /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
   but no libpng.so...
 
A. Yeah.  Send RedHat a nasty gram.
 
Q. I don't understand...
A. In a normal libpng install, say from the source, you would have - in
   addition to the .so.n.n.n.n files - a symlink named libpng.so, like this:
 
      lrwxrwxrwx 1 root  root   19 Apr 23 15:46 libpng.so -> libpng12.so.0.1.2.2
 
   But, that link seems to be missing.  Without it, -lpng doesn't properly
   resolve and you get the ./configure error.
 
Q. Why?
A. RedHat ships Linux with both versions of libpng, a 1.0.x and a 1.2.x version.
 
   Do this:
 
      $ rpm -qa | grep libpng
 
   And you'll see the libpng 1.0.x run time:
 
      libpng-1.2.2-8
      libpng-devel-1.2.2-8
      libpng10-1.0.13-6
 
   Dig into the files installed by them and you'll not find libpng.so.
 
   Since they're incompatible RedHat doesn't create the libpng.so link.
   Instead they patch the makefiles to point the various packages at one or the
   other .so file they install.  This allows them to ship packages that require
   one or the other.
 
   It works fine unless you try and install something other than via an rpm.
   Then you're missing the libpng.so file that normal packages look for...
 
   Best bet is to create a symbolic link from the libpng.so.xxxx installed
   by the package which matches the -devel (because that's where png.h is
   found), e.g.:
 
   ln -s /usr/lib/libpng.so.3.1.2.2 /usr/lib/libpng.so
 
   And remember this in case you update the libpng rpm's in the future.
 
 
-----Burton
 
 
 
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Horta, Benny
Sent: Thursday, October 23, 2003 9:51 AM
To: '[EMAIL PROTECTED]'
Subject: [Ntop] NTOP refuses to use libpng

I try compiling the current CVS and even though I have the packages installed in RH it will think libpng is is not installed.

 

 

checking for pcap...

checking pcap.h usability... yes

checking pcap.h presence... yes

checking for pcap.h... yes

checking for pcap_open_live in -lpcap... yes

checking for pcap_open_dead in -lpcap... yes

checking for gdbm...

checking gdbm.h usability... yes

checking gdbm.h presence... yes

checking for gdbm.h... yes

checking for gdbm_open in -lgdbm... yes

checking for gd...

checking gd.h usability... yes

checking gd.h presence... yes

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

*

*******************************************************************

 

[EMAIL PROTECTED] ntop]# whereis libpng

libpng: /usr/lib/libpng.a /usr/lib/libpng.so /usr/lib/libpng12.a /usr/lib/libpng12.so /usr/local/lib/libpng12.a /usr/local/lib/libpng.a /usr/local/lib/libpng.so /usr/local/lib/libpng12.so /usr/include/libpng /usr/share/man/man3/libpng.3.gz

[EMAIL PROTECTED] ntop]#

Reply via email to