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

Dear Masters,
Under my linux box, I was trying to perform check with this command:
$ perl -MGD -e 'print $GD::VERSION';
And it gave:
GD object version 2.32 does not match $GD::VERSION 2.35 at /usr/lib/pe +rl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 253. Compilation failed in require. BEGIN failed--compilation aborted.
Similarly my script that uses GD.pm doesn't execute.

I have installed the latest version of libgd version 2.0.35 downloaded from
http://www.libgd.org/Downloads#Download_the_latest_.282.0.35.29
Can anybody suggest how can I resolve my problem? This is my Perl version:
This is perl, v5.8.8 built for i386-linux-thread-multi


---
neversaint and everlastingly indebted.......

Replies are listed 'Best First'.
Re: Problem with GD.pm version 2.35 under Perl 5.8.8?
by syphilis (Archbishop) on Jul 03, 2007 at 09:11 UTC
    Hi neversaint,
    Looks like you've got a botched install of GD (ie the perl library). There's nothing wrong with libgd, based on the current evidence.

    Somehow, version 2.35 of GD.pm is being found, but the GD.so is for version 2.32. Any idea how that might have come about ? How did you install GD-2.35 ?

    If you try re-building and re-installing GD-2.35 (the perl module) that might fix the problem. Or re-building and re-installing GD-2.32 should also work - though I'm guessing you'd prefer to have 2.35.

    Cheers,
    Rob