Webalizer produces: error while loading shared libraries: libgd.so.2


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » TroubleShooting

Webalizer produces: error while loading shared libraries: libgd.so.2Last Modified: Jul 15, 2008, 2:45 pm
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 you *don't* have the gd library, install it:

yum install gd



Another solution, since custombuild will install it for you, just in a different location than webalizer is looking, is to link it, eg:

ln -s /usr/local/lib/libgd.so.2 /usr/lib/libgd.so.2



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:
http://files.directadmin.com/services/7.2/webalizer
http://files.directadmin.com/services/7.3/webalizer
http://files.directadmin.com/services/8.0/webalizer
http://files.directadmin.com/services/9.0/webalizer
http://files.directadmin.com/services/fedora_1/webalizer
http://files.directadmin.com/services/fedora_2/webalizer
http://files.directadmin.com/services/fedora_3/webalizer
http://files.directadmin.com/services/es_3.0/webalizer
http://files.directadmin.com/services/freebsd4.8/webalizer
http://files.directadmin.com/services/freebsd5.1/webalizer
http://files.directadmin.com/services/debian_3.0/webalizer
http://files.directadmin.com/services/debian_3.1/webalizer

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

For a full webalize debug guide, see this post:
http://www.directadmin.com/forum/showthread.php?p=113858&posted=1#post113858
 
Related Helpfiles
Downloading a new webalizer binary

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST