in reply to Installing personal GD

Installing /home/***/lib/perl5/site_perl/i386-linux/GD.pm
The module is getting installed to ~/lib/perl5/site_perl/i386-linux, but you only added ~/lib to your library path. Try the whole path:
use lib '/home/anonymonk/lib/perl5/site_perl/i386-linux'; use GD; print "$GD::VERSION\n";
When you changed to that directory and ran GD.pm from the command line, Perl's library path still had all the stuff in /usr at the beginning, so it found the old *.so file before it searched the current directory. But use lib adds paths at the beginning of the list of library paths.

blokhead

Replies are listed 'Best First'.
Re: Re: Installing personal GD
by benizi (Hermit) on Aug 25, 2003 at 16:00 UTC
    I'd recommend use lib '/home/anonymonk/lib/perl5/site_perl'; over the path with 'i386-linux'. Perl automatically adds architecture-specific subdirectories. So, without it, you also cover the case for pure-Perl modules.
Re: Re: Installing personal GD
by Anonymous Monk on Aug 28, 2003 at 17:27 UTC
    Thanks guys. Anyway,

    [***@******//~] cat gdtest.pl use lib '/home/***/lib/perl5/site_perl/i386-linux'; use GD; print "$GD::VERSION\n"; [***@******//~] perl gdtest.pl 2.06


    Seems to have yielded the correct version number. I tried using lib '/home/anonymonk/lib/perl5/site_perl' but the i386-linux directory where GD was installed wasn't being included. Anyway, that seems to have fixed it.