Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Incompatible libpng problem trying to run Webalizer

Status
Not open for further replies.

stevenriz

IS-IT--Management
May 21, 2001
1,069
Hi, first of all this server serves up about 100+ domain websites. I am trying to fix a webalizer problem but I think the problem is a bit deeper then that. I think the problem lies with libpng. I played around with the symbolic links in /usr/lib to no avail. The current RPM installed is libpng-1.2.7-1 so I don't know where this error message is getting those versions from....

What do you think?? Should we reinstall the entire OS or can this be fixed?

---------------------
[root@webs httpdocs]# webalizer -n -o /var/vhosts/ /var/vhosts/Webalizer V2.01-10 (Linux 2.4.21-4.ELsmp) English
Using logfile /var/vhosts/ (clf)
Creating output in /var/vhosts/Hostname for reports is 'History file not found...
Generating report for October 2004
libpng warning: Application was compiled with png.h from libpng-1.2.2
libpng warning: Application is running with png.c from libpng-1.0.13
gd-png: fatal libpng error: Incompatible libpng version in application and library
Segmentation fault
[root@webs httpdocs]#
 
MY BAD
This server is actually running libpng-1.2.2-25.... sorry for the misrepresentation.....

 
Remove all libpng from your box then install latest libpng which is compatible with your webalizer. (hint : look at webalizer's requirements).

-Haben sie fosforos?
-No tiengo caballero, but I have un briquet.
 
I want to do that but was afraid of any reprocussions with other software on that box. There is a lot of perl going on, lots of websites, mysql and even things I can't think of right now. Should we be safe with the removal of libpng and reinstall of it?
 
Anyone heard of development machines ??!!

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
hahahaha No what is this "development" thingy you're talking about??? ;)

I know I know....
 
My first option would be to recompile webalizer [if you can] against your current libpng versions.

My second option would be to put the "required" version of libpng in a sepate location from the current and default LD_LIBRARY_PATH (ie NOT in /usr/lib, /usr/local/lib etc).
Then, before running the webapalizer stuff, export your LD_LIBRARY_PATH to be ONLY your new path :

export LD_LIBRARY_PATH=/my/special/location

I would also (obviously) put any other .so object required by webaalizer in there too.

This way, your normal apps can run as is, and your webalizer thing can use a separate lib location.

Obviously, one you have the opportunity, sort out this situation and test your apps with the required libpng !

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Hi everyone. Thanks for your suggestions. I attempted to update libpng and the box showed me it was fully up to date. I did the same with Webalizer and there was an available update for it so I updated Webaliser and all works ok.

Now I have another issue but I will start a new thread for that.. Thanks a lot!!
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top