Installation issues for Image::Magick on Solaris 10
Posted: 2011-09-01T10:07:29-07:00
Hi Friends,
I am trying to install Image::Magick perl module on Solaris 10 and i am runninf into issues when issue a make command.
I have used this binary (i.e) PerlMagick-6.29.tar.gz
I have run the below commands and output pasted below:
perl Makefile.PL
make
make test
sudo make install
perl -MImage::Magick -e 'print $Image::Magick::VERSION'
Kindly advise me how to proceed further.
perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Image::Magick
Writing MYMETA.yml and MYMETA.json
.................................................................................................................
make
cp Magick.pm blib/lib/Image/Magick.pm
AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick)
/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp -typemap /usr/perl5/5.8.4/lib/ExtUtils/typemap Magick.xs > Magick.xsc && mv Magick.xsc Magick.c
gcc -c -I../ -I.. -I/usr/include/freetype2 -I/usr/local/include/ -I/usr/include -I/usr/include/libxml2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O3 -g -Wall -DVERSION=\"6.2.9\" -DXS_VERSION=\"6.2.9\" -fPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DHAVE_CONFIG_H Magick.c
Magick.xs: In function `GetList':
Magick.xs:790: warning: cast to pointer from integer of different size
Magick.xs: In function `GetPackageInfo':
Magick.xs:874: warning: cast to pointer from integer of different size
Magick.xs:877: warning: cast from pointer to integer of different size
Magick.c: In function `XS_Image__Magick_Animate':
Magick.c:2093: warning: unused variable `ref'
Magick.c:2088: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Append':
Magick.xs:2264: warning: cast from pointer to integer of different size
Magick.c:2167: warning: unused variable `ref'
Magick.c:2162: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Average':
Magick.xs:2354: warning: cast from pointer to integer of different size
Magick.c:2298: warning: unused variable `ref'
Magick.c:2293: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_BlobToImage':
Magick.xs:2499: warning: cast from pointer to integer of different size
Magick.c:2389: warning: unused variable `ref'
Magick.c:2384: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Copy':
Magick.xs:2606: warning: cast from pointer to integer of different size
Magick.c:2538: warning: unused variable `ref'
Magick.c:2533: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Coalesce':
Magick.xs:2692: warning: cast from pointer to integer of different size
Magick.c:2623: warning: unused variable `ref'
Magick.c:2618: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_CompareLayers':
Magick.xs:2825: warning: cast from pointer to integer of different size
Magick.c:2706: warning: unused variable `ref'
Magick.c:2701: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_DESTROY':
Magick.xs:2889: warning: cast to pointer from integer of different size
Magick.xs:2905: warning: cast to pointer from integer of different size
Magick.c:2834: warning: unused variable `ref'
Magick.c: In function `XS_Image__Magick_Display':
Magick.c:2908: warning: unused variable `ref'
Magick.c:2903: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Flatten':
Magick.xs:3106: warning: cast from pointer to integer of different size
Magick.c:2982: warning: unused variable `ref'
Magick.c:2977: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Fx':
Magick.xs:3267: warning: cast from pointer to integer of different size
Magick.c:3112: warning: unused variable `ref'
Magick.c:3107: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Get':
Magick.xs:3515: warning: cast from pointer to integer of different size
Magick.c:3264: warning: unused variable `ref'
Magick.c:3259: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_Histogram':
Magick.c:4429: warning: unused variable `ref'
Magick.c:4424: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_GetPixels':
Magick.c:4544: warning: unused variable `ref'
Magick.c:4539: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_ImageToBlob':
Magick.c:4783: warning: unused variable `ref'
Magick.c:4778: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_MagickToMime':
Magick.c:4880: warning: unused variable `ref'
Magick.c:4876: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Mogrify':
Magick.xs:7666: warning: cast from pointer to integer of different size
Magick.c:4908: warning: unused variable `ref'
Magick.xs: In function `XS_Image__Magick_Montage':
Magick.xs:8070: warning: cast from pointer to integer of different size
Magick.c:7430: warning: unused variable `ref'
Magick.c:7425: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Morph':
Magick.xs:8198: warning: cast from pointer to integer of different size
Magick.c:7831: warning: unused variable `ref'
Magick.c:7826: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Mosaic':
Magick.xs:8283: warning: cast from pointer to integer of different size
Magick.c:7955: warning: unused variable `ref'
Magick.c:7950: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_OptimizeLayers':
Magick.xs:8372: warning: cast from pointer to integer of different size
Magick.c:8038: warning: unused variable `ref'
Magick.c:8033: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_Ping':
Magick.c:8121: warning: unused variable `ref'
Magick.c:8116: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Preview':
Magick.xs:8672: warning: cast from pointer to integer of different size
Magick.c:8320: warning: unused variable `ref'
Magick.c:8315: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_QueryColor':
Magick.c:8413: warning: unused variable `ref'
Magick.c:8408: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_QueryColorname':
Magick.c:8489: warning: unused variable `ref'
Magick.c:8484: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_QueryFont':
Magick.c:8559: warning: unused variable `ref'
Magick.c:8554: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_QueryFontMetrics':
Magick.c:8674: warning: unused variable `ref'
Magick.c:8669: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_QueryMultilineFontMetrics':
Magick.c:9032: warning: unused variable `ref'
Magick.c:9027: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_QueryFormat':
Magick.c:9390: warning: unused variable `ref'
Magick.c:9385: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Read':
Magick.xs:9935: warning: cast from pointer to integer of different size
Magick.c:9478: warning: unused variable `ref'
Magick.c:9473: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_Remote':
Magick.c:9677: warning: unused variable `ref'
Magick.c:9672: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_Set':
Magick.c:9724: warning: unused variable `ref'
Magick.c:9719: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_Statistics':
Magick.c:9782: warning: unused variable `ref'
Magick.c:9777: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Transform':
Magick.xs:10387: warning: cast from pointer to integer of different size
Magick.c:9954: warning: unused variable `ref'
Magick.c:9949: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_Write':
Magick.c:10095: warning: unused variable `ref'
Magick.c:10090: warning: unused variable `ix'
Running Mkbootstrap for Image::Magick ()
chmod 644 Magick.bs
rm -f blib/arch/auto/Image/Magick/Magick.so
LD_RUN_PATH="/usr/local/lib:/usr/lib" gcc -L../magick/.libs -L/usr/lib -G Magick.o -o blib/arch/auto/Image/Magick/Magick.so \
-L/usr/lib -L/usr/local/lib -L/usr/local/lib/ImageMagick-6.3.0 -lMagick -llcms -ltiff -lfreetype -ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lpthread -lm -lpthread \
chmod 755 blib/arch/auto/Image/Magick/Magick.so
cp Magick.bs blib/arch/auto/Image/Magick/Magick.bs
chmod 644 blib/arch/auto/Image/Magick/Magick.bs
Manifying blib/man3/Image::Magick.3
........................................................................................................................
make test
/bin/sh ../magick.sh PERL_DL_NONLAZY=1 /bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/bzlib/*.t t/jng/*.t t/jpeg/*.t t/mpeg/*.t t/png/*.t t/ps/*.t t/tiff/*.t t/wmf/*.t t/x/*.t t/xfig/*.t t/zlib/*.t
../magick.sh: ../magick.sh: cannot open
make: *** [test_dynamic] Error 1
...........................................................................................................................
sudo make install
Password:
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Appending installation info to /usr/perl5/5.8.4/lib/sun4-solaris-64int/perllocal.pod
.............................................................................................................................
perl -MImage::Magick -e 'print $Image::Magick::VERSION'
Can't load '/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/Image/Magick/Magick.so' for module Image::Magick: ld.so.1: perl: fatal: libexpat.so.0: open failed: No such file or directory at /usr/perl5/5.8.4/lib/sun4-solaris-64int/DynaLoader.pm line 230.
at -e line 0
Compilation failed in require.
BEGIN failed--compilation aborted.
I am trying to install Image::Magick perl module on Solaris 10 and i am runninf into issues when issue a make command.
I have used this binary (i.e) PerlMagick-6.29.tar.gz
I have run the below commands and output pasted below:
perl Makefile.PL
make
make test
sudo make install
perl -MImage::Magick -e 'print $Image::Magick::VERSION'
Kindly advise me how to proceed further.
perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Image::Magick
Writing MYMETA.yml and MYMETA.json
.................................................................................................................
make
cp Magick.pm blib/lib/Image/Magick.pm
AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick)
/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp -typemap /usr/perl5/5.8.4/lib/ExtUtils/typemap Magick.xs > Magick.xsc && mv Magick.xsc Magick.c
gcc -c -I../ -I.. -I/usr/include/freetype2 -I/usr/local/include/ -I/usr/include -I/usr/include/libxml2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O3 -g -Wall -DVERSION=\"6.2.9\" -DXS_VERSION=\"6.2.9\" -fPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -DHAVE_CONFIG_H Magick.c
Magick.xs: In function `GetList':
Magick.xs:790: warning: cast to pointer from integer of different size
Magick.xs: In function `GetPackageInfo':
Magick.xs:874: warning: cast to pointer from integer of different size
Magick.xs:877: warning: cast from pointer to integer of different size
Magick.c: In function `XS_Image__Magick_Animate':
Magick.c:2093: warning: unused variable `ref'
Magick.c:2088: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Append':
Magick.xs:2264: warning: cast from pointer to integer of different size
Magick.c:2167: warning: unused variable `ref'
Magick.c:2162: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Average':
Magick.xs:2354: warning: cast from pointer to integer of different size
Magick.c:2298: warning: unused variable `ref'
Magick.c:2293: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_BlobToImage':
Magick.xs:2499: warning: cast from pointer to integer of different size
Magick.c:2389: warning: unused variable `ref'
Magick.c:2384: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Copy':
Magick.xs:2606: warning: cast from pointer to integer of different size
Magick.c:2538: warning: unused variable `ref'
Magick.c:2533: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Coalesce':
Magick.xs:2692: warning: cast from pointer to integer of different size
Magick.c:2623: warning: unused variable `ref'
Magick.c:2618: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_CompareLayers':
Magick.xs:2825: warning: cast from pointer to integer of different size
Magick.c:2706: warning: unused variable `ref'
Magick.c:2701: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_DESTROY':
Magick.xs:2889: warning: cast to pointer from integer of different size
Magick.xs:2905: warning: cast to pointer from integer of different size
Magick.c:2834: warning: unused variable `ref'
Magick.c: In function `XS_Image__Magick_Display':
Magick.c:2908: warning: unused variable `ref'
Magick.c:2903: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Flatten':
Magick.xs:3106: warning: cast from pointer to integer of different size
Magick.c:2982: warning: unused variable `ref'
Magick.c:2977: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Fx':
Magick.xs:3267: warning: cast from pointer to integer of different size
Magick.c:3112: warning: unused variable `ref'
Magick.c:3107: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Get':
Magick.xs:3515: warning: cast from pointer to integer of different size
Magick.c:3264: warning: unused variable `ref'
Magick.c:3259: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_Histogram':
Magick.c:4429: warning: unused variable `ref'
Magick.c:4424: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_GetPixels':
Magick.c:4544: warning: unused variable `ref'
Magick.c:4539: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_ImageToBlob':
Magick.c:4783: warning: unused variable `ref'
Magick.c:4778: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_MagickToMime':
Magick.c:4880: warning: unused variable `ref'
Magick.c:4876: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Mogrify':
Magick.xs:7666: warning: cast from pointer to integer of different size
Magick.c:4908: warning: unused variable `ref'
Magick.xs: In function `XS_Image__Magick_Montage':
Magick.xs:8070: warning: cast from pointer to integer of different size
Magick.c:7430: warning: unused variable `ref'
Magick.c:7425: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Morph':
Magick.xs:8198: warning: cast from pointer to integer of different size
Magick.c:7831: warning: unused variable `ref'
Magick.c:7826: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Mosaic':
Magick.xs:8283: warning: cast from pointer to integer of different size
Magick.c:7955: warning: unused variable `ref'
Magick.c:7950: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_OptimizeLayers':
Magick.xs:8372: warning: cast from pointer to integer of different size
Magick.c:8038: warning: unused variable `ref'
Magick.c:8033: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_Ping':
Magick.c:8121: warning: unused variable `ref'
Magick.c:8116: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Preview':
Magick.xs:8672: warning: cast from pointer to integer of different size
Magick.c:8320: warning: unused variable `ref'
Magick.c:8315: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_QueryColor':
Magick.c:8413: warning: unused variable `ref'
Magick.c:8408: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_QueryColorname':
Magick.c:8489: warning: unused variable `ref'
Magick.c:8484: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_QueryFont':
Magick.c:8559: warning: unused variable `ref'
Magick.c:8554: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_QueryFontMetrics':
Magick.c:8674: warning: unused variable `ref'
Magick.c:8669: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_QueryMultilineFontMetrics':
Magick.c:9032: warning: unused variable `ref'
Magick.c:9027: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_QueryFormat':
Magick.c:9390: warning: unused variable `ref'
Magick.c:9385: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Read':
Magick.xs:9935: warning: cast from pointer to integer of different size
Magick.c:9478: warning: unused variable `ref'
Magick.c:9473: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_Remote':
Magick.c:9677: warning: unused variable `ref'
Magick.c:9672: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_Set':
Magick.c:9724: warning: unused variable `ref'
Magick.c:9719: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_Statistics':
Magick.c:9782: warning: unused variable `ref'
Magick.c:9777: warning: unused variable `ix'
Magick.xs: In function `XS_Image__Magick_Transform':
Magick.xs:10387: warning: cast from pointer to integer of different size
Magick.c:9954: warning: unused variable `ref'
Magick.c:9949: warning: unused variable `ix'
Magick.c: In function `XS_Image__Magick_Write':
Magick.c:10095: warning: unused variable `ref'
Magick.c:10090: warning: unused variable `ix'
Running Mkbootstrap for Image::Magick ()
chmod 644 Magick.bs
rm -f blib/arch/auto/Image/Magick/Magick.so
LD_RUN_PATH="/usr/local/lib:/usr/lib" gcc -L../magick/.libs -L/usr/lib -G Magick.o -o blib/arch/auto/Image/Magick/Magick.so \
-L/usr/lib -L/usr/local/lib -L/usr/local/lib/ImageMagick-6.3.0 -lMagick -llcms -ltiff -lfreetype -ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lpthread -lm -lpthread \
chmod 755 blib/arch/auto/Image/Magick/Magick.so
cp Magick.bs blib/arch/auto/Image/Magick/Magick.bs
chmod 644 blib/arch/auto/Image/Magick/Magick.bs
Manifying blib/man3/Image::Magick.3
........................................................................................................................
make test
/bin/sh ../magick.sh PERL_DL_NONLAZY=1 /bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/bzlib/*.t t/jng/*.t t/jpeg/*.t t/mpeg/*.t t/png/*.t t/ps/*.t t/tiff/*.t t/wmf/*.t t/x/*.t t/xfig/*.t t/zlib/*.t
../magick.sh: ../magick.sh: cannot open
make: *** [test_dynamic] Error 1
...........................................................................................................................
sudo make install
Password:
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Appending installation info to /usr/perl5/5.8.4/lib/sun4-solaris-64int/perllocal.pod
.............................................................................................................................
perl -MImage::Magick -e 'print $Image::Magick::VERSION'
Can't load '/usr/perl5/site_perl/5.8.4/sun4-solaris-64int/auto/Image/Magick/Magick.so' for module Image::Magick: ld.so.1: perl: fatal: libexpat.so.0: open failed: No such file or directory at /usr/perl5/5.8.4/lib/sun4-solaris-64int/DynaLoader.pm line 230.
at -e line 0
Compilation failed in require.
BEGIN failed--compilation aborted.