Problems installing GD

Discussion in 'Perl Misc' started by katie.rennie@gmail.com, Mar 17, 2006.

  1. Guest

    I've seen a similar topic previously, but I haven't managed to find a
    working solution.

    I'm trying to install GD.pm on a server running RedHat linux, perl
    5.8.5
    I've reinstalled libgd (version 2.0.33). I removed old copies of
    libgd.so, libgd.so.2, libgd.so.2.0.0 and libgd.a first, and compiled
    without any --prefix option, so everything was put in the default
    place.
    I've tried installing GD-2.32
    It all runs fine through "perl Makefile.pl" and "make", but when I get
    to "make test" (running with TEST_VERBOSE=1) I see the following
    error:

    **********************************************************************************************

    PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
    "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
    t/GD..........1..12
    Can't load './blib/arch/auto/GD/GD.so' for module GD: libgd.so.2:
    cannot open shared object file: No such file or directory at
    /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/DynaLoader.pm line
    230.
    at t/GD.t line 14
    Compilation failed in require at t/GD.t line 14.
    BEGIN failed--compilation aborted at t/GD.t line 14.
    not ok 1
    dubious
    Test returned status 255 (wstat 65280, 0xff00)
    DIED. FAILED tests 1-12
    Failed 12/12 tests, 0.00% okay
    t/Polyline....1..1
    # Running under perl version 5.008005 for linux
    # Current time local: Fri Mar 17 10:03:46 2006
    # Current time GMT: Fri Mar 17 10:03:46 2006
    # Using Test.pm version 1.25
    Can't load '/usr/lib/perl5/5.8.5/GD-2.32/blib/arch/auto/GD/GD.so' for
    module GD: libgd.so.2: cannot open shared object file: No such file or
    directory at
    /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/DynaLoader.pm line
    230.
    at /usr/lib/perl5/5.8.5/GD-2.32/blib/lib/GD/Polyline.pm line 45
    Compilation failed in require at
    /usr/lib/perl5/5.8.5/GD-2.32/blib/lib/GD/Polyline.pm line 45.
    BEGIN failed--compilation aborted at
    /usr/lib/perl5/5.8.5/GD-2.32/blib/lib/GD/Polyline.pm line 45.
    Compilation failed in require at t/Polyline.t line 10.
    BEGIN failed--compilation aborted at t/Polyline.t line 10.
    dubious
    Test returned status 255 (wstat 65280, 0xff00)
    DIED. FAILED test 1
    Failed 1/1 tests, 0.00% okay
    Failed Test Stat Wstat Total Fail Failed List of Failed
    -------------------------------------------------------------------------------
    t/GD.t 255 65280 12 23 191.67% 1-12
    t/Polyline.t 255 65280 1 2 200.00% 1
    Failed 2/2 test scripts, 0.00% okay. 13/13 subtests failed, 0.00% okay.
    make: *** [test_dynamic] Error 255


    **********************************************************************************************

    The file /usr/lib/perl5/5.8.5/GD-2.32/blib/arch/auto/GD/GD.so does
    exist, and is readable and executable by anyone.

    Reading through the documentation, it looks like the only thing
    suggested that I haven't tried is compiling and reinstalling perl from
    the latest stable source code.

    I'd be grateful for any other suggestions I can try before going to
    that last resort. Thanks for reading.
    , Mar 17, 2006
    #1
    1. Advertising

  2. Guest

    On a suggestion in a previous, similar, topic, I tried setting the
    LD_LIBRARY_PATH environment variable to include the GD lib directory,
    but this didn't change the error message I get.
    , Mar 17, 2006
    #2
    1. Advertising

  3. Sisyphus Guest

    <> wrote in message
    news:...
    > On a suggestion in a previous, similar, topic, I tried setting the
    > LD_LIBRARY_PATH environment variable to include the GD lib directory,
    > but this didn't change the error message I get.
    >


    I don't understand linux very well (in fact I don't understand *any*
    operating system very well) - does it make any difference if you first run
    `ldconfig` as root ?

    I think the error message you reported in your initial post is telling you
    that './blib/arch/auto/GD/GD.so' can be *found*, but it can't be loaded
    because libgd.so.2 (which it needs to load) can't be found.

    Are the libgd.so.2 permissions ok ?

    Cheers,
    Rob
    Sisyphus, Mar 18, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brent
    Replies:
    3
    Views:
    5,977
    Brent
    Jun 28, 2004
  2. Lloyd Sheen
    Replies:
    2
    Views:
    300
    Lloyd Sheen
    Aug 28, 2004
  3. Edwin Litterst
    Replies:
    4
    Views:
    513
    Edwin Litterst
    Dec 22, 2003
  4. jose luis fernandez diaz

    Problems installing netforge on Tru64

    jose luis fernandez diaz, Feb 13, 2004, in forum: Java
    Replies:
    0
    Views:
    386
    jose luis fernandez diaz
    Feb 13, 2004
  5. Per-Christian Engdal
    Replies:
    0
    Views:
    325
    Per-Christian Engdal
    Nov 29, 2004
Loading...

Share This Page