[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Installing GD for Perl [somewhat long]



Hi List,

After installing ipac-ng with apt I need GD for Perl to make it draw
graphs (a missing dependency in Debian?). Installing gdlib-perl with
apt-get fails:

# server:~/.cpan/build/GD-2.02# apt-get install libgd-perl
# Reading Package Lists... Done
# Building Dependency Tree... Done
# Some packages could not be installed. This may mean that you have
# requested an impossible situation or if you are using the unstable
# distribution that some required packages have not yet been created
# or been moved out of Incoming.
#
# Since you only requested a single operation it is extremely likely
that
# the package is simply not installable and a bug report against
# that package should be filed.
# The following information may help to resolve the situation:
#
# Sorry, but the following packages have unmet dependencies:
#   libgd-perl: Depends: perlapi-5.6.1
# E: Sorry, broken packages

Ok, not a problem yet. I can still install it with CPAN. Or so I
thought...

# server:~/.cpan/build/GD-2.02# perl -MCPAN -e shell
#
# cpan shell -- CPAN exploration and modules installation (v1.63)
# ReadLine support enabled
#
# cpan> install GD
# CPAN: Storable loaded ok
# Going to read /root/.cpan/Metadata
#   Database was generated on Sun, 20 Oct 2002 03:52:16 GMT
# Running install for module GD
# Running make for L/LD/LDS/GD-2.02.tar.gz
# CPAN: Digest::MD5 loaded ok
# CPAN: Compress::Zlib loaded ok
# Checksum for /root/.cpan/sources/authors/id/L/LD/LDS/GD-2.02.tar.gz ok
# Scanning cache /root/.cpan/build for sizes
# Deleting from cache: /root/.cpan/build/URI-1.22 (10.3>10.0 MB)
[snip file contents]
# Removing previously used /root/.cpan/build/GD-2.02
#
#   CPAN.pm: Going to build L/LD/LDS/GD-2.02.tar.gz
#
# NOTICE: This module requires libgd 2.0.1 or higher.
#         For earlier versions of libgd, use GD version 1.43.
#
# Please choose the features that match how libgd was built:
# Build JPEG support? [y]
# Build FreeType support? [y] n
# Build XPM support? [y] n
#
# If you experience compile problems, please check the @INC, @LIBPATH
and @LIBS
# arrays defined in Makefile.PL and manually adjust, if necessary.
#
# WARNING: CAPI is not a known parameter.
# Checking if your kit is complete...
# Looks good
# Warning: prerequisite Math::Trig 1 not found.
# Writing Makefile for GD
# cp GD/Polyline.pm blib/lib/GD/Polyline.pm
# cp patch_gd.pl blib/lib/patch_gd.pl
# cp qd.pl blib/lib/qd.pl
# cp GD.pm blib/lib/GD.pm
# AutoSplitting blib/lib/GD.pm (blib/lib/auto/GD)
# /usr/bin/perl /usr/share/perl/5.8.0/ExtUtils/xsubpp  -typemap
/usr/share/perl/5.8.0/ExtUtils/typemap -typemap typemap  GD.xs > GD.xsc
&& mv GD.xsc GD.c
#
cc -c  -I/usr/local/include -I/usr/local/include/gd -D_REENTRANT -D_GNU_
SOURCE -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_S
OURCE -D_FILE_OFFSET_BITS=64 -O3   -DVERSION=\"2.02\" -DXS_VERSION=\"2.0
2\" -fPIC "-I/usr/lib/perl/5.8.0/CORE"  -DHAVE_JPEG GD.c
# Running Mkbootstrap for GD ()
# chmod 644 GD.bs
# rm -f blib/arch/auto/GD/GD.so
# LD_RUN_PATH="" cc  -shared -L/usr/local/lib GD.o  -o
blib/arch/auto/GD/GD.so   -L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/local/l
ib -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::Polyline.3pm
# Manifying blib/man3/GD.3pm
#   /usr/bin/make  -- OK
# Running make test
# PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# t/GD..........dubious
#         Test returned status 0 (wstat 11, 0xb)
# Constant subroutine __need_size_t redefined at
/usr/lib/perl/5.8.0/stddef.ph line 131.
# DIED. FAILED tests 2-10
#         Failed 9/10 tests, 10.00% okay
# t/Polyline....ok
# Failed Test Stat Wstat Total Fail  Failed  List of Failed
# ----------------------------------------------------------------------
---------
# t/GD.t         0    11    10    9  90.00%  2-10
# Failed 1/2 test scripts, 50.00% okay. 9/11 subtests failed, 18.18%
okay.
# make: *** [test_dynamic] Error 29
#   /usr/bin/make test -- NOT OK
# Running make install
#   make test had returned bad status, won't install without force

Could someone tell me what I have done wrong?

Thanks for your help in advance,
Daniel




Reply to: