1. make sure that the following packages/dev-packages are installed before you start to compile the module: - libgif / libgif-dev - libjpeg / libjpeg-dev - libpng / libpng-dev 2. extract files tar xzf Image-Scale-0.08.tar.gz cd Image-Scale-0.08 3. perl Makefile.PL Image::Scale will be built with: JPEG support: yes (/usr/include, version 80) PNG support: yes (/usr/include, version 1.5.9) GIF support: yes (/usr/include, version 4.1, libgif) Writing Makefile for Image::Scale 4. make cp lib/Image/Scale.pm blib/lib/Image/Scale.pm /usr/bin/perl5.12.0 /usr/lib/perl5/5.12.0/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.12.0/ExtUtils/typemap -typemap typemap Scale.xs > Scale.xsc && mv Scale.xsc Scale.c Please specify prototyping behavior for Scale.xs (see perlxs manual) cc -c -I. -I.. -Isrc -Iinclude -I/usr/include -I/usr/include -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O2 -DVERSION=\"0.08\" -DXS_VERSION=\"0.08\" -fPIC "-I/usr/lib/perl5/5.12.0/i686-linux-thread-multi/CORE" -O2 -Wall -Wno-unused-value -Wno-format-security -Winline -ffast-math -DHAVE_JPEG -DJPEG_VERSION=80 -DHAVE_PNG -DPNG_VERSION=1.5.9 -DHAVE_GIF -DGIF_VERSION=4.1 Scale.c In file included from src/image.c:25, from Scale.xs:18: src/png.c: In function 'image_png_read_buf': src/png.c:43: warning: implicit declaration of function 'png_memcpy' Running Mkbootstrap for Image::Scale () chmod 644 Scale.bs rm -f blib/arch/auto/Image/Scale/Scale.so LD_RUN_PATH="/usr/lib" cc -shared -O2 Scale.o -o blib/arch/auto/Image/Scale/Scale.so \ -ljpeg -lpng -lz -lgif \ chmod 755 blib/arch/auto/Image/Scale/Scale.so cp Scale.bs blib/arch/auto/Image/Scale/Scale.bs chmod 644 blib/arch/auto/Image/Scale/Scale.bs 5. make test PERL_DL_NONLAZY=1 /usr/bin/perl5.12.0 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t # Failed test 'use Image::Scale;' # at t/01use.t line 3. # Tried to use 'Image::Scale'. # Error: Can't load '/soft/perl_addons_01/Image-Scale-0.08/blib/arch/auto/Image/Scale/Scale.so' for module Image::Scale: /soft/perl_addons_01/Image-Scale-0.08/blib/arch/auto/Image/Scale/Scale.so: undefined symbol: png_memcpy at /usr/lib/perl5/5.12.0/i686-linux-thread-multi/DynaLoader.pm line 200. # at (eval 4) line 2 # Compilation failed in require at (eval 4) line 2. # BEGIN failed--compilation aborted at (eval 4) line 2. # Looks like you failed 1 test of 1. t/01use.t .......... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests t/02pod.t .......... skipped: set TEST_POD to enable this test t/03podcoverage.t .. skipped: set TEST_POD to enable this test t/04critic.t ....... skipped: Critic test only for developers. Can't load '/soft/perl_addons_01/Image-Scale-0.08/blib/arch/auto/Image/Scale/Scale.so' for module Image::Scale: /soft/perl_addons_01/Image-Scale-0.08/blib/arch/auto/Image/Scale/Scale.so: undefined symbol: png_memcpy at /usr/lib/perl5/5.12.0/i686-linux-thread-multi/DynaLoader.pm line 200. at t/bmp.t line 9 Compilation failed in require at t/bmp.t line 9. BEGIN failed--compilation aborted at t/bmp.t line 9. # Looks like your test exited with 2 before it could output anything. t/bmp.t ............ Dubious, test returned 2 (wstat 512, 0x200) Failed 30/30 subtests Can't load '/soft/perl_addons_01/Image-Scale-0.08/blib/arch/auto/Image/Scale/Scale.so' for module Image::Scale: /soft/perl_addons_01/Image-Scale-0.08/blib/arch/auto/Image/Scale/Scale.so: undefined symbol: png_memcpy at /usr/lib/perl5/5.12.0/i686-linux-thread-multi/DynaLoader.pm line 200. at t/gif.t line 9 Compilation failed in require at t/gif.t line 9. BEGIN failed--compilation aborted at t/gif.t line 9. t/gif.t ............ Dubious, test returned 2 (wstat 512, 0x200) No subtests run Can't load '/soft/perl_addons_01/Image-Scale-0.08/blib/arch/auto/Image/Scale/Scale.so' for module Image::Scale: /soft/perl_addons_01/Image-Scale-0.08/blib/arch/auto/Image/Scale/Scale.so: undefined symbol: png_memcpy at /usr/lib/perl5/5.12.0/i686-linux-thread-multi/DynaLoader.pm line 200. at t/jpeg.t line 9 Compilation failed in require at t/jpeg.t line 9. BEGIN failed--compilation aborted at t/jpeg.t line 9. t/jpeg.t ........... Dubious, test returned 2 (wstat 512, 0x200) No subtests run Can't load '/soft/perl_addons_01/Image-Scale-0.08/blib/arch/auto/Image/Scale/Scale.so' for module Image::Scale: /soft/perl_addons_01/Image-Scale-0.08/blib/arch/auto/Image/Scale/Scale.so: undefined symbol: png_memcpy at /usr/lib/perl5/5.12.0/i686-linux-thread-multi/DynaLoader.pm line 200. at t/png.t line 9 Compilation failed in require at t/png.t line 9. BEGIN failed--compilation aborted at t/png.t line 9. t/png.t ............ Dubious, test returned 2 (wstat 512, 0x200) No subtests run Test Summary Report ------------------- t/01use.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/bmp.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 30 tests but ran 0. t/gif.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/jpeg.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/png.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=8, Tests=1, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.30 cusr 0.02 csys = 0.35 CPU) Result: FAIL Failed 5/8 test programs. 1/1 subtests failed. make: *** [test_dynamic] Error 2 6. ../perl-files.sh