GD Library and Webalizer

joh2900

Verified User
Joined
Nov 13, 2003
Messages
48
when starting webalizer:
/usr/bin/webalizer: error while loading shared libraries: libgd.so.2: cannot ope
n shared object file: No such file or directory


I have done:

./build clean gd
./build gd

and

./build clean webalizer
./build webalizer


what can I do to get this working?
 
As far as I know I have the same errors, because there are 2 webalizers located on my system :) The one DA uses should work fine ;)
 
Same Issue Here

I have the same issue..

[root@monkey bin]# ./webalizer
./webalizer: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
[root@monkey bin]#

How to fix??

In the user mode of direct admin it says:




File does not exist



Details

You must wait for the stats to be computed. This will only happen *after* logs exist (domain must resolve and be used


Please help!!!
 
That Didn't Help

Still Need to get Webalizer to work. Any Help would be great!
 
Re: That Didn't Help

splitech said:
Still Need to get Webalizer to work. Any Help would be great!
There are webalizer builds available that only support gif and others that only support png.

And likewise for versions of GD.

It sounds as if in your case you've got a mismatch.

Jeff
 
Someone Help Fix!

Thats not a definete answer on how to FIX this problem
 
Is this better:

1) determine whether your webalizer install is attempting to build either .png or .gif images

2) determine whether your version of GD supports .png or .gif images.

:confused:

Before you write back that I'm still not being helpful, please realize that I have no idea what the answers to either of those questions is.

Jeff
 
For anyone with webalizer problems relating to gd or png, I've compiled some static webalizer binaries which will bypass the problem.
Redhat 7.2, 7.3:
Code:
wget -O /usr/bin/webalizer  http://files.directadmin.com/services/7.2/webalizer
Redhat 8.0:
Code:
wget -O /usr/bin/webalizer  http://files.directadmin.com/services/8.0/webalizer
Fedora 1, Redhat 9.0:
Code:
wget -O /usr/bin/webalizer  http://files.directadmin.com/services/fedora_1/webalizer
Fedora 2:
Code:
wget -O /usr/bin/webalizer  http://files.directadmin.com/services/fedora_2/webalizer
Enterprize, CentOS:
Code:
wget -O /usr/bin/webalizer  http://files.directadmin.com/services/es_3.0/webalizer
FreeBSD 4.x:
Code:
wget -O /usr/local/bin/webalizer http://files.directadmin.com/services/freebsd4.8/webalizer
FreeBSD 5.x:
Code:
wget -O /usr/local/bin/webalizer http://files.directadmin.com/services/freebsd5.1/webalizer
I think I'll change the installer to just install these are they are far less fuss ;)

John
 
Please note that I recieve a similar error with libgd.so.4 when trying to execute it the same maner and yet statistics are still generated properly by DirectAdmin running the tally command so are stats working within DA for you?
 
I've added the rest of them.. there should be a binary for each OS now (some duplicates, but they should work fine).

John
 
splitech said:
And how do i go about finding that information?
Hopefully by now you've been able to use the statically compiled webalizer binaries and don't need to check this any further...

but...

I can't tell you how to check, because I don't know where you're getting your webalizer or GD sources from.

If you're getting them from DA, then DA should be able to tell you how they were compiled. If you're getting them from your unix/linux package, then the distributor's support system should be able to tell you.

Jeff
 
DirectAdmin Support said:
I've added the rest of them.. there should be a binary for each OS now (some duplicates, but they should work fine).

John

Where can i find the one for RedHat Linux 9
 
One neat little trick that worked for me was either making a copy of the libgd.so.* file that is on the system and rename it to the one that is required, or make a symlink to it with the name needed and it works :)
 
solution for FreeBSD 5.4

On FreeBSD 5.4 this did the trick for me:

cd /usr/local/lib
rm libgd.so ; ln -s libgd.so.4 libgd.so

cd /usr/local/directadmin/customapache/webalizer-2.01-10
make
make install
 
Back
Top