Web Hosting Talk







View Full Version : Loading Libgd


dutchie
05-04-2002, 06:39 AM
I have manually installed PHP 4.1.2

For some reason webalizer stopped working, i get the error:

error in loading shared libraries: libgd.so.1.8: cannot open shared object file: No such file or directory

I did a locate libgd with the next result


/usr/doc/python-docs-1.5.1/Doc/libgdbm.tex
/usr/lib/libgd.so
/usr/lib/libgdbm.so.2.0.0
/usr/lib/libgdbm.so.2
/usr/lib/libgdbm.a
/usr/lib/libgdbm.so
/usr/lib/libgd.la
/usr/lib/libgd.so.1
/usr/lib/libgd.so.2.0.0
/usr/lib/libgd.so.2
/usr/lib/libgd.a


So indeed no libgd.so.1.8
How do i tell webalizer to stop looking for 1.8 and look for 2.0 or how (if desirable) load/install (?) 1.8 ?

As you might notice i don't know much about linux, but i'm learning as i go along :cartman:

Thanks for any help !

Shyne
05-04-2002, 03:51 PM
Create a symlink between the /usr/lib/libgd.so.2 and /usr/lib/libgd.so.1.8

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

dutchie
05-05-2002, 04:25 AM
Thanks Shayne for the fix.

But would actually like to know what really caused it and how to really correct the problem, i guess lots of people here use webalizer and installed PHP 4.1.2 (if that is indeed what caused the problem).
So someone must be able to shine some light on this ?
:(

Shyne
05-05-2002, 08:24 PM
Maybe PHP installed new GD modules. I can't say for sure, because anything could've deleted the library or another software could have updated the libraries for it's own use. I can't say for sure.

priyadi
05-05-2002, 10:23 PM
Because your installation of webalizer expects GD 1.8, and the installed version is 2.0. Symlinking version 2.0 to 1.8 works because somehow 1.8 and 2.0 are compatible, but it is very rare that a library still compatible when the major version changes. The proper way to fix this problem IMHO is to recompile webalizer to use the new version of GD library.

dutchie
05-06-2002, 11:14 AM
Since i wouldn't know how to compile anything I entered the symlink, now I get :


/usr/local/bin/webalizer: error in loading shared libraries: libpng.so.3: cannot open shared object file: No such file or directory


:(

Again a locate shows I DO have:


/usr/lib/libpng.so.2
/usr/lib/libpng.so.2.1.0.12
/usr/lib/libpng.a
/usr/lib/libpng.so
/usr/share/doc/libpng-1.0.12
/usr/share/doc/libpng-1.0.12/CHANGES
/usr/share/doc/libpng-1.0.12/README
/usr/share/doc/libpng-1.0.12/TODO
/usr/share/doc/libpng-1.0.12/example.c
/usr/share/doc/libpng-1.0.12/libpng.txt
/usr/share/man/man3/libpng.3.gz
/usr/share/man/man3/libpngpf.3.gz


Any suggestions that might help ?

Thanks

Shyne
05-06-2002, 04:06 PM
No where does `locate` show that you have libpng.so.3 installed. Only libpng.so.2. So run this symlink:

ln -s /usr/lib/libpng.so.2 /usr/lib/libpng.so.3

dutchie
05-07-2002, 06:37 AM
Yezz it worked.
Thanks for the help