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

Hi,

I'm trying to install GD.pm. Was wondering if anyone had this error when I run make test

make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/GD..........Can't load './blib/arch/auto/GD/GD.so' for module GD: li +bjpeg.so.8: cannot open shared object file: No such file or directory + at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 2 +30. at t/GD.t line 14

Or can anyone help me interpret the above.

Thank-you

David J.

Replies are listed 'Best First'.
Re: Need Help with Installing GD.pm
by moritz (Cardinal) on Apr 27, 2010 at 18:47 UTC

    Looks like libjpeg.so.8 is missing. On my Debian system there are libjpeg.*-dev packages that provide such files - installing one of them should help.

    Perl 6 - links to (nearly) everything that is Perl 6.
      Hi,

      It turns out that for module libjpeg.so.8 was symlinked to libjpeg.so.8.0.1 in /usr/local/lib

      I deleted the symlink and created a copy with the name libjpeg.so.8

      This worked. (Probably this wasn't right thing to do - ie how do I get the make of GD-2.44 to recognize the symlink)

      Now the next problem:

      libpng warning: Application was compiled with png.h from libpng-1.4.1 libpng warning: Application is running with png.c from libpng-1.2.7 gd-png: fatal libpng error: Incompatible libpng version in applicatio +n and library

      I installed 1.4.1 . Does this mean GD-2.44 doesn't work with 1.4.1 and I need to uninstall it and install the older version 1.2.7

      BTW thanks so far.
      David J.

Re: Need Help with Installing GD.pm
by marto (Cardinal) on Apr 27, 2010 at 21:37 UTC

    See the README file, the JPEG library is optional, but you may as well install it.