I need to resize a JPEG image. (reduce)
I'd writen a script that uses GD module.
The problem is that i can't install it in my sistem. 

Does anyone knows GD dependencies?
Normally, CPAN knows modules dependencies and it automaticly install requierements, 
but it returns me errors*
is there any requierement on GD instalation?

I think GD is the unique way to resize pictures. Does anyone know other?

I'm running under a Debian distribution.


GD instllation returns it:
##########################################################################
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://ftp.rediris.es/mirror/CPAN/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok
Fetching with LWP:
  ftp://ftp.rediris.es/mirror/CPAN/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Sun, 29 Dec 2002 00:45:58 GMT
Fetching with LWP:
  ftp://ftp.rediris.es/mirror/CPAN/modules/03modlist.data.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Running install for module GD
Running make for L/LD/LDS/GD-2.05.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for /root/.cpan/sources/authors/id/L/LD/LDS/GD-2.05.tar.gz ok
Scanning cache /root/.cpan/build for sizes
GD-2.05/
GD-2.05/t/
GD-2.05/t/GD.t
GD-2.05/t/Polyline.t
GD-2.05/t/test.out.1.png
GD-2.05/t/test.out.2.png
GD-2.05/t/test.out.3.png
GD-2.05/t/test.out.4.png
GD-2.05/t/test.out.5.png
GD-2.05/t/test.out.6.png
GD-2.05/t/test.out.7.png
GD-2.05/t/test.out.8.png
GD-2.05/t/test.out.9.png
GD-2.05/t/Generic.ttf
GD-2.05/t/frog.jpg
GD-2.05/t/frog.xpm
GD-2.05/t/test.out.8.png-1
GD-2.05/t/test.out.8.png-2
GD-2.05/t/test.out.8.png-3
GD-2.05/t/test.out.8.png-4
GD-2.05/t/test.out.8.png-5
GD-2.05/t/tile.png
GD-2.05/t/palettemap.png
GD-2.05/t/test.out.10.png
GD-2.05/GD/
GD-2.05/GD/Polyline.pm
GD-2.05/GD.pm
GD-2.05/GD.xs
GD-2.05/demos/
GD-2.05/demos/brushes.pl
GD-2.05/demos/font_list.png
GD-2.05/demos/fonttest
GD-2.05/demos/polys.pl
GD-2.05/demos/fills.pl
GD-2.05/demos/truetype_test
GD-2.05/demos/shapes.pl
GD-2.05/demos/copies.pl
GD-2.05/demos/ttf.pl
GD-2.05/demos/gd_example.cgi
GD-2.05/demos/tile.png
GD-2.05/demos/polyline.pl
GD-2.05/demos/transform.pl
GD-2.05/qd.pl
GD-2.05/README
GD-2.05/Makefile.PL
GD-2.05/README.QUICKDRAW
GD-2.05/typemap
GD-2.05/bdf_scripts/
GD-2.05/bdf_scripts/README
GD-2.05/bdf_scripts/cvtbdf.pl
GD-2.05/bdf_scripts/bdftogd
GD-2.05/README.unix
GD-2.05/ChangeLog



GD-2.05/MANIFEST
Removing previously used /root/.cpan/build/GD-2.05

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

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]

Please choose the features that match how libgd was built:
Build JPEG support? [y]
Build FreeType support? [y]
Build XPM support? [y]

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

Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lX11
Note (probably harmless): No library found for -lXpm
Writing Makefile for GD
cp qd.pl blib/lib/qd.pl
cp GD.pm blib/lib/GD.pm
AutoSplitting blib/lib/GD.pm (blib/lib/auto/GD)
cp GD/Polyline.pm blib/lib/GD/Polyline.pm
/usr/bin/perl -I/usr/lib/perl/5.6.1 -I/usr/share/perl/5.6.1 
/usr/share/perl/5.6.1/ExtUtils/xsubpp  -typemap /usr/share/perl/5.6.1/ExtUtils/typemap 
-typemap typemap GD.xs > GD.xsc && mv GD.xsc GD.c
cc -c -I/usr/local/include -I/usr/local/include/gd -DDEBIAN -fno-strict-aliasing 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   
-DVERSION=\"2.05\" -DXS_VERSION=\"2.05\" -fPIC -I/usr/lib/perl/5.6.1/CORE -DHAVE_JPEG 
-DHAVE_FT -DHAVE_XPM GD.c
Running Mkbootstrap for GD ()
chmod 644 GD.bs
rm -f blib/arch/auto/GD/GD.so
LD_RUN_PATH="/usr/local/lib" 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/lib -lgd -lpng 
-lz -lfreetype -ljpeg -lm
/usr/bin/ld: cannot find -lpng
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/GD/GD.so] Error 1
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
######################################################################################

Thanks

Reply via email to