Save 15% on Instant Deploy Bare-Metal Servers in 26 Global Markets with Coupon Code: EdgeSave

Webalizer is giving errors

Webalizer produces: error while loading shared libraries: libgd.so.2
When you run the following, you get:

[root@server]# webalizer

webalizer: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory
That means that the program is unable to find the gd library required to run it. You should already have the library, so you just have to tell the binary linker where to find it.

Type the following:

echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig

And then try running webalizer again. The error should be gone.

If webalizer is functioning correctly, you should see something similar to:

[root@server]# webalizer
Webalizer V2.01-10 (Linux 2.4.21-9.0.1.EL) English
Using logfile STDIN (clf)

Creating output in current directory
Hostname for reports is ‘es.jbmc-software.com’
History file not found…

If all of that fails, then you can just download a static binary from our files server:
https://files.directadmin.com/services/7.2/webalizer
https://files.directadmin.com/services/7.3/webalizer
https://files.directadmin.com/services/8.0/webalizer
https://files.directadmin.com/services/9.0/webalizer
https://files.directadmin.com/services/fedora_1/webalizer
https://files.directadmin.com/services/fedora_2/webalizer
https://files.directadmin.com/services/fedora_3/webalizer
https://files.directadmin.com/services/es_3.0/webalizer
https://files.directadmin.com/services/freebsd4.8/webalizer
https://files.directadmin.com/services/freebsd5.1/webalizer
https://files.directadmin.com/services/debian_3.0/webalizer
https://files.directadmin.com/services/debian_3.1/webalizer

Related forum thread: https://www.directadmin.com/forum/showthread.php?s=&postid=40734#post40734

Share on Twitter
Share on Facebook