I have been attempting to configure my own, non-ancient version of GD. Due to my administrator's various vices, the facts that his version is ancient and that it isn't built to support JPEG have not been addressed.

Here is a log of me installing GD 2.06 into my home directory without a hitch. /home/***/lib is where my libgd (2.0.15) is contained.

[***@******//~/GD-2.06] perl Makefile.PL PR EFIX=/home/*** NOTICE: This module requires libgd 2.0.5 or higher. it will NOT work with earlier versions. For earlier versions of libgd, use GD version 1.41. Where is libgd installed? [/usr/lib] /home/***/lib Please choose the features that match how libgd was built: Build JPEG support? [y] y Build FreeType support? [y] n Build XPM support? [y] n If you experience compile problems, please check the @INC, @LIBPATH an +d @LIBS arrays defined in Makefile.PL and manually adjust, if necessary. Writing Makefile for GD [***@******//~/GD-2.06] make cc -c -I/home/***/include -I/usr/local/include -I/usr/local/include/g +d -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FI +LE_OFFSET_BITS=64 -O2 -DVERSION=\"2.06\" -DXS_VERSION=\"2.06\" -fpi +c "-I/usr/lib/perl5/i386-linux/CORE" -DHAVE_JPEG GD.c Running Mkbootstrap for GD () chmod 644 GD.bs rm -f blib/arch/auto/GD/GD.so LD_RUN_PATH="/home/***/lib:/usr/lib:/lib" cc -shared -L/usr/local/lib + GD.o -o blib/arch/auto/GD/GD.so -L/home/***/lib -L/usr/X11R6/lib +-L/usr/local/lib -lgd -lpng -lz -ljpeg -lm chmod 755 blib/arch/auto/GD/GD.so cp GD.bs blib/arch/auto/GD/GD.bs chmod 644 blib/arch/auto/GD/GD.bs Manifying blib/man3/GD.3 Manifying blib/man3/GD::Polyline.3 [***@******//~/GD-2.06] make install Installing /home/***/lib/perl5/site_perl/i386-linux/auto/GD/GD.so Installing /home/***/lib/perl5/site_perl/i386-linux/auto/GD/GD.bs Files found in blib/arch: installing files in blib/lib into architectu +re dependent library tree Installing /home/***/lib/perl5/site_perl/i386-linux/qd.pl Installing /home/***/lib/perl5/site_perl/i386-linux/GD.pm Installing /home/***/lib/perl5/site_perl/i386-linux/GD/Polyline.pm Installing /home/***/lib/perl5/site_perl/i386-linux/auto/GD/autosplit. +ix Writing /home/***/lib/perl5/site_perl/i386-linux/auto/GD/.packlist Appending installation info to /home/***/lib/perl5/site_perl/i386-linu +x/perllocal.pod
When I attempt to run my test script to see if GD is the proper version, this happens:
[***@******//~] cat gdtest.pl use lib '/home/***/lib'; use GD; print "$GD::VERSION\n"; [***@******//~] perl gdtest.pl 1.32
Indicating that the module being loaded is my administrator's ancient version of GD. One other thing that I noted was that when I attempted to load GD.pm from ~/lib/perl5/site_perl/i386-linux, I got a wierd error:
[***@******//~/lib/perl5/site_perl/i386-linux] perl GD.pm GD object version 1.32 does not match $GD::VERSION 2.06 at /usr/lib/pe +rl5/i386-linux/DynaLoader.pm line 219.
So basically, I have two questions:
How can I make sure the GD I use is the one located in ~/lib/perl5/site_perl/i386-linux, and
How can I fix that wierd error about the GD object being version 1.32?

I suspect the two questions are causally related.

In reply to Installing personal GD by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.