Re: [GD-DEVEL] Problems using GD.pm: Can't load GD.so for module GD: libgd.so.2: cannot open shared object file: No such file or directory
| From: | Pierre | Date: | Tue, 10 Apr 2007 22:34:56 +0000 |
| Subject: | Re: [GD-DEVEL] Problems using GD.pm: Can't load GD.so for module GD: libgd.so.2: cannot open shared object file: No such file or directory | ||
| References: | 1 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-171@lists.php.net to get a copy of this message | ||
Hi Michael,
On 4/10/07, michael watson (IAH-C) <michael.watson@bbsrc.ac.uk> wrote:
Following on from my libpng issues, which have now been solved by installing libpng-devel and libjpeg-devel, I have now come across issues with GD.pm, which apparently relate to the way I have installed the gd library itself. I installed gd-2.0.33 as so: gunzip < gd-2.0.33.tar.gz | tar xvf - ./configure --with-png --with-jpeg make install Why 2.0.33 I hear you ask? Well, 2.0.34 requires a version of Autoconf that is not available for my version of Red Hat, so I downgraded to 2.0.3.3You should really use 2.0.34, especially if you use gd on a public server (like with perl). You can install a more recent version of autoconf manually and add it in your path (like in your home), the same applies to automake.
Now, I also installed GD.pm so: cd ../GD-2.35 perl Makefile.PL make make install That succeeded, but all the tests in "make test" failed miserably. If I try and load GD in perl: perl use GD; Can't load '/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/GD/GD.so' for module GD: libgd.so.2: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229. at - line 1 Compilation failed in require at - line 1. BEGIN failed--compilation aborted at - line 1. I did a bit of googling and there seemed to be a suggestion that I should specifically compile gd for sharing, but I have no idea how to do that and couldn't find it in the INSTALL docs.... Any help?How have you installed the libgd? It looks like it was not installed at all or not in the default path. Be sure that "gdlib-config" is in your path, it is used by the module Makefile. --Pierre