ichimunki has asked for the wisdom of the Perl Monks concerning the following question:

I have dl'ed and installed the libgd latest version from scratch. I have dl'ed and run standard install for GD from CPAN. All looks swell. Until...
$ perl -e "use GD;" Can't load '/usr/local/lib/perl5/site_perl/5.6.0/ppc-linux/auto/GD/GD. +so' for module GD: libgd.so.4: cannot open shared object file: No such fil +e or directory at /usr/local/lib/perl5/5.6.0/ppc-linux/DynaLoader.pm line 2 +00. at -e line 1 Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. $ cd /usr/local/lib/perl5/site_perl/5.6.0/ppc-linux/auto/GD/ $ ls GD.bs GD.so autosplit.ix libgd.a libgd.la libgd.so libgd.so.4 libgd.so.4.0.0
Is there some key I'm missing?

Replies are listed 'Best First'.
Re: Trying to use GD module
by Fastolfe (Vicar) on Jan 01, 2001 at 22:56 UTC
    Update: Ignore previous post. New Year's Resolution #18: Read before posting.

    Perhaps you installed your GD package in a place that the Perl GD module didn't know about? Was it able to find the GD headers/etc when you installed it originally? What are the pathnames to the *original* libgd.so* files? The GD.pm won't be looking in its own module directory for these libraries. That means it needs to be able to find them in a "standard" library directory (e.g. /usr/lib, /usr/local/lib perhaps, etc.).

      that's libgd. unless there's a piece of it that I completely overlooked, I have a fresh install of that.

      update: It turned out to be a libgd problem, as Fastolfe suggested. Although it was installed, it had gone to the wrong /lib. I set -prefix differently during the ./configure step, and it worked out fine.
        I updated my node to re-phrase my question just as you replied, sorry.