Re: Perl-GD module installation

[email protected] (sivasakthi)
Newsgroups perl.beginners
Message-ID <1210157155.2588.27.camel@localhost>

> GD can be installed with the help of CPAN. 
> 
> http://www.libgd.org/releases/
> 
> then, unpack and install
> 
> tar xvf gd-2.0.35.tar
> cd gd-2.0.35
> ./configure
> make
> make install
> 
> then reinstall the latest GD perl module using cpan:
> perl -MCPAN -e shell
> CPAN>install GD
> 
> -- 
> Affijn, Ruud
> 
> "Gewoon is een tijger."
> 


Thanks for your reply..

I have tried your suggestions .. but it failed to install .. the error
statements are attached with this mail.


Thanks,
error.txt (text/plain, 7.4 KB)
cpan> install GD
CPAN: Storable loaded ok
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Fetching with LWP:
  ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Wed, 07 May 2008 02:29:51 GMT

  There's a new CPAN.pm version (v1.9205) available!
  [Current version is v1.7601]
  You might want to try
    install Bundle::CPAN
    reload cpan
  without quitting the current session. It should be a seamless upgrade
  while we are running...

Fetching with LWP:
  ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Going to write /root/.cpan/Metadata
Running install for module GD
Running make for L/LD/LDS/GD-2.39.tar.gz
Fetching with LWP:
  ftp://ftp.perl.org/pub/CPAN/authors/id/L/LD/LDS/GD-2.39.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
  ftp://ftp.perl.org/pub/CPAN/authors/id/L/LD/LDS/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/L/LD/LDS/GD-2.39.tar.gz ok
Scanning cache /root/.cpan/build for sizes
GD-2.39/
GD-2.39/t/
GD-2.39/t/test.out.3.jpeg
GD-2.39/t/GD.t
GD-2.39/t/tile.jpeg
GD-2.39/t/test.out.4.jpeg
GD-2.39/t/test.out.5.jpeg
GD-2.39/t/test.out.6.jpeg
GD-2.39/t/test.out.7.jpeg
GD-2.39/t/test.out.8.jpeg
GD-2.39/t/test.out.9.jpeg
GD-2.39/t/test.out.3.png-1
GD-2.39/t/Polyline.t
GD-2.39/t/test.out.4.png-1
GD-2.39/t/test.out.4.png-2
GD-2.39/t/test.out.10.png-1
GD-2.39/t/test.out.10.png-2
GD-2.39/t/test.out.10.png-3
GD-2.39/t/test.out.1.png
GD-2.39/t/test.out.2.gif
GD-2.39/t/test.out.2.png
GD-2.39/t/test.out.3.gif
GD-2.39/t/test.out.3.png
GD-2.39/t/test.out.4.gif
GD-2.39/t/test.out.4.png
GD-2.39/t/test.out.5.gif
GD-2.39/t/test.out.5.png
GD-2.39/t/test.out.6.gif
GD-2.39/t/test.out.6.png
GD-2.39/t/test.out.7.gif
GD-2.39/t/test.out.7.png
GD-2.39/t/test.out.8.gif
GD-2.39/t/test.out.8.png
GD-2.39/t/test.out.9.gif
GD-2.39/t/test.out.9.png
GD-2.39/t/test.out.5.png-1
GD-2.39/t/Generic.ttf
GD-2.39/t/test.out.6.png-1
GD-2.39/t/test.out.7.png-1
GD-2.39/t/frog.jpg
GD-2.39/t/frog.xpm
GD-2.39/t/test.out.10.jpeg
GD-2.39/t/test.out.8.png-1
GD-2.39/t/test.out.8.png-2
GD-2.39/t/test.out.8.png-3
GD-2.39/t/test.out.8.png-4
GD-2.39/t/test.out.8.png-5
GD-2.39/t/test.out.8.png-6
GD-2.39/t/tile.gif
GD-2.39/t/tile.png
GD-2.39/t/test.out.2.png-1
GD-2.39/t/test.out.9.png-1
GD-2.39/t/test.out.9.png-2
GD-2.39/t/palettemap.png
GD-2.39/t/test.out.10.gif
GD-2.39/t/test.out.10.png
GD-2.39/t/test.out.2.jpeg
GD-2.39/GD/
GD-2.39/GD/Polygon.pm
GD-2.39/GD/Simple.pm
GD-2.39/GD/Image.pm.PLS
GD-2.39/GD/Polyline.pm
GD-2.39/GD.pm
GD-2.39/GD.xs
GD-2.39/demos/
GD-2.39/demos/brushes.pl
GD-2.39/demos/font_list.png
GD-2.39/demos/fonttest
GD-2.39/demos/polys.pl
GD-2.39/demos/fills.pl
GD-2.39/demos/truetype_test
GD-2.39/demos/shapes.pl
GD-2.39/demos/copies.pl
GD-2.39/demos/ttf.pl
GD-2.39/demos/gd_example.cgi
GD-2.39/demos/tile.png
GD-2.39/demos/polyline.pl
GD-2.39/demos/transform.pl
GD-2.39/qd.pl
GD-2.39/README
GD-2.39/Makefile.PL
GD-2.39/README.QUICKDRAW
GD-2.39/META.yml
GD-2.39/typemap
GD-2.39/bdf_scripts/
GD-2.39/bdf_scripts/README
GD-2.39/bdf_scripts/bdf2gdfont.PLS
GD-2.39/bdf_scripts/bdftogd
GD-2.39/bdf_scripts/bdf2gdfont.pl
GD-2.39/README.unix
GD-2.39/ChangeLog
GD-2.39/MANIFEST

  CPAN.pm: Going to build L/LD/LDS/GD-2.39.tar.gz

Notice: Type perl Makefile.PL -h for command-line option summary.

Configuring for libgd version 2.0.34.
Checking for stray libgd header files...

** WARNING: found gd.h header file in /usr/includegd.h, but it is expected at /usr/local/include/gd.h. This may cause compile errors! **


** WARNING: found gd.h header file in /usr/includegd.h, but it is expected at /usr/local/include/gd.h. This may cause compile errors! **
** Possible problems found **

Included Features:          GD_GIF GD_GIFANIM GD_OPENPOLYGON GD_UNCLOSEDPOLY GD_ANIMGIF GD_FTCIRCLE VERSION_33
GD library used from:       /usr/local
Checking if your kit is complete...
Looks good
Writing Makefile for GD
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" GD/Image.pm.PLS GD/Image.pm
Extracting Image.pm (with variable substitutions)
cp GD/Polyline.pm blib/lib/GD/Polyline.pm
cp qd.pl blib/lib/qd.pl
cp GD/Image.pm blib/lib/GD/Image.pm
cp GD.pm blib/lib/GD.pm
AutoSplitting blib/lib/GD.pm (blib/lib/auto/GD)
cp GD/Simple.pm blib/lib/GD/Simple.pm
cp GD/Polygon.pm blib/lib/GD/Polygon.pm
/usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.8.5/ExtUtils/typemap -typemap typemap  GD.xs > GD.xsc && mv GD.xsc GD.c
gcc -c  -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe   -DVERSION=\"2.39\" -DXS_VERSION=\"2.39\" -fPIC "-I/usr/lib/perl5/5.8.5/ia64-linux-thread-multi/CORE"  -DHAVE_FT -DHAVE_GIF -DHAVE_ANIMGIF -DVERSION_33 -DHAVE_UNCLOSEDPOLY -DHAVE_FTCIRCLE GD.c
GD.xs: In function `XS_GD__Image_STORABLE_thaw':
GD.xs:923: warning: cast from pointer to integer of different size
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/lib -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
cp bdf_scripts/bdf2gdfont.pl blib/script/bdf2gdfont.pl
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/bdf2gdfont.pl
Manifying blib/man1/bdf2gdfont.pl.1
Manifying blib/man3/GD::Polyline.3pm
Manifying blib/man3/GD::Image.3pm
Manifying blib/man3/GD::Simple.3pm
Manifying blib/man3/GD.3pm
Manifying blib/man3/GD::Polygon.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..........Can't load './blib/arch/auto/GD/GD.so' for module GD: ./blib/arch/auto/GD/GD.so: undefined symbol: gdImageGifAnimAddPtr at /usr/lib/perl5/5.8.5/ia64-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.
t/GD..........dubious
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-12
        Failed 12/12 tests, 0.00% okay
t/Polyline....Can't load '/root/.cpan/build/GD-2.39/blib/arch/auto/GD/GD.so' for module GD: /root/.cpan/build/GD-2.39/blib/arch/auto/GD/GD.so: undefined symbol: gdImageGifAnimAddPtr at /usr/lib/perl5/5.8.5/ia64-linux-thread-multi/DynaLoader.pm line 230.
 at /root/.cpan/build/GD-2.39/blib/lib/GD/Polyline.pm line 45
Compilation failed in require at /root/.cpan/build/GD-2.39/blib/lib/GD/Polyline.pm line 45.
BEGIN failed--compilation aborted at /root/.cpan/build/GD-2.39/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.
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    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
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force

cpan>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.