GD.pm install woes

Discussion in 'Perl Misc' started by Xevo, Oct 30, 2004.

  1. Xevo

    Xevo Guest

    I've been trying to install GD.pm for a few days now, but to no avail.

    I am using Fedora Core 2 with a P4 system.

    I have installed libgd 2.0.28, Free Type 2.1.9, libpng 1.2.7, and
    jpeg-6b. All were installed from source. I gave each it's own
    directory under /usr/local/. There were no errors during the install
    of any of them. I can use the scripts that get put into the bin
    directory by libgd (such as webpng) so I know libgd is working.

    My problem arrises when installing GD.pm. I am attempting to install
    GD.pm 2.16. I am using the following args with Makefile.PL, although I
    have tried many other variations (such as without "/lib" at the end of
    the paths):

    perl Makefile.PL -lib_gd_path /usr/local/gd/lib -lib_png_path
    /usr/local/libpng/lib -lib_jpeg_path /usr/local/jpeg/lib -lib_ft_path
    /usr/local/freetype2/lib -options "GD_JPEG,GD_FREETYPE,GD_PNG,GD_GIF"

    This gives me the following output:


    --------------------------------------------------
    Configuring for libgd version 2.0.28.
    Included Features: GD_JPEG,GD_FREETYPE,GD_PNG,GD_GIF
    GD library used from: /usr/local/gd/lib
    FreeType library used from: /usr/local/freetype2/lib
    PNG library used from: /usr/local/libpng/lib
    JPEG library used from: /usr/local/jpeg/lib

    If you experience compile problems, please check the @INC, @LIBPATH
    and @LIBS
    arrays defined in Makefile.PL and manually adjust, if necessary.

    Writing Makefile for GD
    --------------------------------------------------


    Ok, so far so good! I then run make...


    --------------------------------------------------
    gcc -c -I/usr/local/jpeg/lib/include -I/usr/local/libpng/lib/include
    -I/usr/local/freetype2/lib/include -I/usr/local/include -D_REENTRANT
    -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing
    -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    -I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686
    -DVERSION=\"2.16\" -DXS_VERSION=\"2.16\" -fPIC
    "-I/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE" -DHAVE_JPEG
    -DHAVE_FT -DHAVE_GIF GD.c
    Running Mkbootstrap for GD ()
    chmod 644 GD.bs
    rm -f blib/arch/auto/GD/GD.so
    gcc -shared -L/usr/local/lib GD.o -o blib/arch/auto/GD/GD.so
    -L/usr/local/freetype2/lib -L/usr/local/libpng/lib
    -L/usr/local/jpeg/lib -L/usr/local/lib -ljpeg -lfreetype -lpng -lz -lm
    -lgd
    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::polyline.3pm
    Manifying blib/man3/GD.3pm
    --------------------------------------------------


    Still no problems that I can see. However, make test blows up...


    --------------------------------------------------
    PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
    "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
    t/GD..........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/lib/perl5/5.8.3/i386-linux-thread-multi/DynaLoader.pm line
    229.
    ] at t/GD.t line 13
    Compilation failed in require at t/GD.t line 13.
    BEGIN failed--compilation aborted at t/GD.t line 13.
    t/GD..........dubious
    Test returned status 255 (wstat 65280, 0xff00)
    Scalar found where operator expected at (eval 152) line 1, near "'int'
    $__val"
    (Missing operator before $__val?)
    DIED. FAILED tests 1-10
    Failed 10/10 tests, 0.00% okay
    t/Polyline....Can't load
    '/home/x3v0/gt/install/GD-2.16/blib/arch/auto/GD/GD.so' for module GD:
    [libgd.so.2: cannot open shared object file: No such file or directory
    at /usr/lib/perl5/5.8.3/i386-linux-thread-multi/DynaLoader.pm line
    229.
    ] at /home/x3v0/gt/install/GD-2.16/blib/lib/GD/Polyline.pm line 49
    Compilation failed in require at
    /home/x3v0/gt/install/GD-2.16/blib/lib/GD/Polyline.pm line 49.
    BEGIN failed--compilation aborted at
    /home/x3v0/gt/install/GD-2.16/blib/lib/GD/Polyline.pm line 49.
    Compilation failed in require at t/Polyline.t line 10.
    BEGIN failed--compilation aborted at t/Polyline.t line 10.
    t/Polyline....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 10 19 190.00% 1-10
    t/Polyline.t 255 65280 1 2 200.00% 1
    Failed 2/2 test scripts, 0.00% okay. 11/11 subtests failed, 0.00%
    okay.
    make: *** [test_dynamic] Error 255
    --------------------------------------------------


    I'm not sure exactly what is wrong, but it looks like it can't find
    libgd.so.2. Any ideas on what is going on and how to fix this error?

    Thanks,
    Xevo
    Xevo, Oct 30, 2004
    #1
    1. Advertising

  2. Xevo wrote:

    > I've been trying to install GD.pm for a few days now, but to no avail.
    >
    > I am using Fedora Core 2 with a P4 system.
    >
    > I have installed libgd 2.0.28, Free Type 2.1.9, libpng 1.2.7, and
    > jpeg-6b. All were installed from source. I gave each it's own
    > directory under /usr/local/. There were no errors during the install
    > of any of them. I can use the scripts that get put into the bin
    > directory by libgd (such as webpng) so I know libgd is working.
    >


    I've had problem before too. Try an earlier version. 1.18 has gif suport.

    gtoomey
    Gregory Toomey, Oct 30, 2004
    #2
    1. Advertising

  3. Xevo

    Anno Siegel Guest

    Xevo <> wrote in comp.lang.perl.misc:
    > I've been trying to install GD.pm for a few days now, but to no avail.
    >
    > I am using Fedora Core 2 with a P4 system.


    I did this recently with GD 2.16 on OS X.

    > I have installed libgd 2.0.28, Free Type 2.1.9, libpng 1.2.7, and
    > jpeg-6b. All were installed from source. I gave each it's own
    > directory under /usr/local/. There were no errors during the install
    > of any of them. I can use the scripts that get put into the bin
    > directory by libgd (such as webpng) so I know libgd is working.


    I had all the auxiliary libs (no Free Type here) installed into
    standard locations (/usr/local/lib/). GD installed smoothly.

    [snip symptoms]

    Anno
    Anno Siegel, Oct 30, 2004
    #3
  4. Xevo

    Ben Morrow Guest

    Quoth (Xevo):
    > I've been trying to install GD.pm for a few days now, but to no avail.
    >
    > I'm not sure exactly what is wrong, but it looks like it can't find
    > libgd.so.2. Any ideas on what is going on and how to fix this error?


    Try adding /usr/local/gd/lib to your LD_LIBRARY_PATH.

    Ben

    --
    perl -e'print map {/.(.)/s} sort unpack "a2"x26, pack "N"x13,
    qw/1632265075 1651865445 1685354798 1696626283 1752131169 1769237618
    1801808488 1830841936 1886550130 1914728293 1936225377 1969451372
    2047502190/' #
    Ben Morrow, Oct 30, 2004
    #4
  5. Xevo

    Xevo Guest

    Ben Morrow <> wrote in message news:<>...
    > Quoth (Xevo):
    > > I've been trying to install GD.pm for a few days now, but to no avail.
    > >
    > > I'm not sure exactly what is wrong, but it looks like it can't find
    > > libgd.so.2. Any ideas on what is going on and how to fix this error?

    >
    > Try adding /usr/local/gd/lib to your LD_LIBRARY_PATH.
    >
    > Ben


    Thank you. Setting LD_LIBRARY_PATH helped a lot. I am now getting a
    different, less verbose error when doing "make test TEST_VERBOSE=1".
    It says it failed test 4. I don't know what test 4 is, so I'm not sure
    where to go from here. As before, ./configure and make gave no errors.



    PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
    "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
    t/GD..........1..10
    ok 1
    ok 2
    ok 3
    not ok 4
    ok 5
    ok 6
    ok 7
    ok 8 # Skip, FreeType changes too frequently to be testable
    ok 9 # Skip, no XPM support
    not ok 10
    FAILED tests 4, 10
    Failed 2/10 tests, 80.00% okay (less 2 skipped tests: 6 okay,
    60.00%)
    t/Polyline....1..1
    # Running under perl version 5.008003 for linux
    # Current time local: Sun Oct 31 18:06:25 2004
    # Current time GMT: Sun Oct 31 23:06:25 2004
    # Using Test.pm version 1.24
    ok 1
    ok
    Failed Test Stat Wstat Total Fail Failed List of Failed
    -------------------------------------------------------------------------------
    t/GD.t 10 2 20.00% 4 10
    2 subtests skipped.
    Failed 1/2 test scripts, 50.00% okay. 2/11 subtests failed, 81.82%
    okay.
    make: *** [test_dynamic] Error 255
    Xevo, Oct 31, 2004
    #5
    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. RJGraham
    Replies:
    8
    Views:
    10,301
    Ryan Stewart
    Feb 14, 2004
  2. Richard Hanson
    Replies:
    13
    Views:
    713
    David Bolen
    Aug 31, 2004
  3. Greg Willits

    ruby-mysql install woes

    Greg Willits, Oct 27, 2007, in forum: Ruby
    Replies:
    3
    Views:
    120
    Greg Willits
    Oct 28, 2007
  4. Pierre Pepe

    RMagick Install Woes ;_;

    Pierre Pepe, Mar 9, 2011, in forum: Ruby
    Replies:
    5
    Views:
    178
    Luis Lavena
    Mar 10, 2011
  5. Troy Piggins

    cpan module install woes - UTF-8 problem?

    Troy Piggins, Oct 31, 2007, in forum: Perl Misc
    Replies:
    2
    Views:
    264
    Ben Morrow
    Oct 31, 2007
Loading...

Share This Page