LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Traffic Graphing Software (https://www.linuxquestions.org/questions/linux-software-2/traffic-graphing-software-114918/)

ganninu 11-11-2003 03:25 PM

Traffic Graphing Software
 
I'm using the Etinc Bandwidth Manager and it has a tool which graphs intenet traffic across the network card. However I'm not getting it to work - I'm obtaining a internal server error. So I checked through the httpd error log files and this is what i got:

[Thu Dec 11 16:12:33 2003] [error] [client 67.145.0.130] Premature end of script
headers: /var/www/cgi-bin/et/bwcmd
libpng warning: Application was compiled with png.h from libpng-1.0.8
libpng warning: Application is running with png.c from libpng-1.2.0
gd-png: fatal libpng error: Incompatible libpng version in application and library


Can someone illuminate me of what can i do to solve this problem? (PS: I have had a png library in a tar.gz archive which i extracted as indicated by the software...)

Thanks..
Ganninu.

Tinkster 11-11-2003 03:54 PM

It's pretty clear, really ... the executable that
you're using was compiled against an older
version of libpng, and obviously can't co-operate
with the newer runtime library.

The solution would be to recompile it on your
machine, using the newer libpng development
libraries.

Cheers,
Tink

P.S.: Since you have a flock of distros listed,
could you enlighten us as to which distro you're
having the troubles with, and how things were
installed?

ganninu 11-11-2003 04:41 PM

Can i do it the other way round? - i.e. install the old version of png libs? I'm testing the application on an old box running Redhat 7.1... (hehe not even listed in my "flock of distros")

Tinkster 11-11-2003 07:12 PM

You're probably running at risk to break
some other dependencies if you do that.

Check your RPM database on what needs
other packages might have in this respect.

Cheers,
Tink

ganninu 11-12-2003 03:27 PM

well... the problem is that the software was not compiled by me.. it's just an executable!!! however i recall of extracting a tarpng.tgz (came into the software bundle) which contained png libs and gd libs. Again... these were not compiled, but extracted as well... The manual was not very helpful about this section, and I tried to download/install other versions of the libpng but was in vain :(

ganninu 11-26-2003 02:15 AM

by the way, since i looked up several forums and i noted that many many ppl have this problem (but i've seen no solutions), i've basically spent one whole day trying to solve it, and i succeeded :)

What i did is pretty simple - the above error actually means that the software was compiled 'against' a png library of version 1.0.8 but on my linux I had a later version (1.2.0) which apparently was not backward compatible... So what i did was to install the libpng_1.8.0 package and then create several symbolic links to make linux think that it still has its 1.2.0 version (the libpng 1.2.0 version creates a libpng.so.3 which is missing in the libpng 1.0.8, so i created a symbolic link libpng.so.3 which pointed to libpng.so.2.1.0.8) - and it really worked without any problems. Nothing was affected :)

Hope this tip would help many other ppl who had my same problem.


All times are GMT -5. The time now is 09:38 AM.