Installation issues for Image::Magick on Solaris 10

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
prash358
Posts: 36
Joined: 2011-09-01T09:40:03-07:00
Authentication code: 8675308

Re: Installation issues for Image::Magick on Solaris 10

Post by prash358 »

Below is the output from the PerlMagick folder for perl Makefile.PL, make and make test.

Please let me know whether to run make install with those errors from make test.

perl Makefile.PL
Checking if your kit is complete...
Looks good
Warning: -L../magick/.libs changed to -L/home/pkaturi/Perl_MODS/ImageMagick-6.7.2-1/PerlMagick/../magick/.libs
Note (probably harmless): No library found for -lperl
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 -typemap typemap Magick.xs > Magick.xsc && mv Magick.xsc Magick.c
gcc -c -I../ -I.. -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/include/libxml2 -I"/usr/include/ImageMagick" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -g -O2 -Wall -D_REENTRANT -pthreads -DVERSION=\"6.72\" -DXS_VERSION=\"6.72\" -fPIC "-I/usr/perl5/5.8.4/lib/sun4-solaris-64int/CORE" -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
Magick.xs: In function `GetList':
Magick.xs:908: warning: cast to pointer from integer of different size
Magick.xs: In function `GetPackageInfo':
Magick.xs:994: warning: cast to pointer from integer of different size
Magick.xs:997: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Append':
Magick.xs:2589: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Average':
Magick.xs:2682: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_BlobToImage':
Magick.xs:2830: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Clone':
Magick.xs:2940: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Coalesce':
Magick.xs:3062: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Compare':
Magick.xs:3261: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_CompareLayers':
Magick.xs:3397: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_DESTROY':
Magick.xs:3476: warning: cast to pointer from integer of different size
Magick.xs:3491: warning: cast to pointer from integer of different size
Magick.xs: In function `XS_Image__Magick_EvaluateImages':
Magick.xs:3714: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Flatten':
Magick.xs:4027: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Fx':
Magick.xs:4191: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Get':
Magick.xs:4454: warning: cast from pointer to integer of different size
Magick.xs:4473: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Layers':
Magick.xs:6926: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Mogrify':
Magick.xs:10688: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Montage':
Magick.xs:11097: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Morph':
Magick.xs:11228: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Mosaic':
Magick.xs:11316: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Preview':
Magick.xs:11627: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Read':
Magick.xs:13041: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Smush':
Magick.xs:13578: warning: cast from pointer to integer of different size
Magick.xs: In function `XS_Image__Magick_Transform':
Magick.xs:13935: warning: cast from pointer to integer of different size
Running Mkbootstrap for Image::Magick ()
chmod 644 Magick.bs
rm -f blib/arch/auto/Image/Magick/Magick.so
LD_RUN_PATH="/home/pkaturi/Perl_MODS/ImageMagick-6.7.2-1/PerlMagick/../magick/.libs" gcc -L../magick/.libs -lMagickCore -G -Wl,-zlazyload Magick.o -o blib/arch/auto/Image/Magick/Magick.so \
-L/home/pkaturi/Perl_MODS/ImageMagick-6.7.2-1/PerlMagick/../magick/.libs -lMagickCore -lm \

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
PERL_DL_NONLAZY=1 /bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/bzlib/*.t t/jpeg/*.t t/jng/*.t t/png/*.t t/tiff/*.t t/x11/*.t t/zlib/*.t
t/blob.t .......... ok
t/bzlib/read.t .... ok
t/bzlib/write.t ... ok
t/composite.t ..... ok
t/filter.t ........ ok
t/getattribute.t .. ok
t/jng/read.t ...... ok
t/jng/write.t ..... ok
t/jpeg/read.t ..... ok
t/jpeg/write.t .... ok
t/montage.t ....... ok
t/ping.t .......... ok
t/png/read-16.t ... ok
t/png/read.t ...... ok
t/png/write-16.t .. ok
t/png/write.t ..... ok
t/read.t .......... ok
t/setattribute.t .. ok
t/tiff/read.t ..... ok
t/tiff/write.t .... ok
t/write.t ......... ok
t/x11/read.t ...... Failed 2/2 subtests
t/x11/write.t ..... ok
t/zlib/read.t ..... ok
t/zlib/write.t .... ok

Test Summary Report
-------------------
t/x11/read.t (Wstat: 139 Tests: 0 Failed: 0)
Non-zero wait status: 139
Parse errors: Bad plan. You planned 2 tests but ran 0.
Files=25, Tests=355, 101 wallclock secs ( 1.19 usr 0.30 sys + 87.56 cusr 9.90 csys = 98.95 CPU)
Result: FAIL
Failed 1/25 test programs. 0/355 subtests failed.
make: *** [test_dynamic] Error 29
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Installation issues for Image::Magick on Solaris 10

Post by magick »

Looks like its working. The warnings and X11 tests can be safely ignored.
prash358
Posts: 36
Joined: 2011-09-01T09:40:03-07:00
Authentication code: 8675308

Re: Installation issues for Image::Magick on Solaris 10

Post by prash358 »

Below is the install output of PerlMagick folder and after the install is done, i have checked the version and it given the below:

sudo make install
Password:
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/perl5/5.8.4/man/man3/Image::Magick.3
Appending installation info to /usr/perl5/5.8.4/lib/sun4-solaris-64int/perllocal.pod

perl -MImage::Magick -e 'print $Image::Magick::VERSION'
6.72

Please confirm whether it has installed successfully..and suggest me how to test it.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Installation issues for Image::Magick on Solaris 10

Post by magick »

Go to the PerlMagick/demo folder to test PerlMagick. Type 'make'.
prash358
Posts: 36
Joined: 2011-09-01T09:40:03-07:00
Authentication code: 8675308

Re: Installation issues for Image::Magick on Solaris 10

Post by prash358 »

Below is the output for PerlMagick demo folder. Please let me know whether it has installed successfully.

make
perl demo.pl
Read...
Transform image...
Adaptive Blur...
Adaptive Resize...
Adaptive Sharpen...
Adaptive Threshold...
Add Noise...
Annotate...
Auto-gamma...
Auto-level...
Blur...
Border...
Channel...
Charcoal...
ColorMatrix...
Composite...
Contrast...
Contrast Stretch...
Convolve...
Crop...
Despeckle...
Distort...
Draw...
Detect Edges...
Emboss...
Equalize...
Implode...
Flip...
Flop...
Frame...
Fx...
Gamma...
Gaussian Blur...
Gradient...
Grayscale...
Implode...
Level...
Median Filter...
Mode...
Modulate...
Monochrome...
Morphology...
Motion Blur...
Negate...
Normalize...
Oil Paint...
Plasma...
Polaroid...
Posterize...
Quantize...
Radial Blur...
Raise...
Reduce Noise...
Resize...
Roll...
Rotate...
Sample...
Scale...
Segment...
Shade...
Sharpen...
Shave...
Shear...
Sketch...
Sigmoidal Contrast...
Spread...
Solarize...
Swirl...
Unsharp Mask...
Vignette...
Wave...
Montage...
Write...
Display...
display: unable to open X server `' @ error/display.c/DisplayImageCommand/428.
perl button.pl
display: unable to open X server `' @ error/display.c/DisplayImageCommand/428.
perl shapes.pl
Write image...
Display image...
display: unable to open X server `' @ error/display.c/DisplayImageCommand/428.
perl piddle.pl
display: unable to open X server `' @ error/display.c/DisplayImageCommand/428.
perl tree.pl
display: unable to open X server `' @ error/display.c/DisplayImageCommand/428.
perl steganography.pl
display: unable to open X server `' @ error/display.c/DisplayImageCommand/428.
display: unable to open X server `' @ error/display.c/DisplayImageCommand/428.
perl shadow_text.pl
display: unable to open X server `' @ error/display.c/DisplayImageCommand/428.
perl compose_specials.pl
display: unable to open X server `' @ error/display.c/DisplayImageCommand/428.
perl pixel_fx.pl
display: unable to open X server `' @ error/display.c/DisplayImageCommand/428.
perl single_pixels.pl
Get('pixel[x,y]') = 63479,39064,26728,0
GetPixel() = 0.968627450980392 0.596078431372549 0.407843137254902
display: unable to open X server `' @ error/display.c/DisplayImageCommand/428.
perl annotate.pl
angle 0
angle 30
angle 60
angle 90
angle 120
angle 150
angle 180
angle 210
angle 240
angle 270
angle 300
angle 330
perl composite.pl
angle 0
angle 30
angle 60
angle 90
angle 120
angle 150
angle 180
angle 210
angle 240
angle 270
angle 300
prash358
Posts: 36
Joined: 2011-09-01T09:40:03-07:00
Authentication code: 8675308

Re: Installation issues for Image::Magick on Solaris 10

Post by prash358 »

Please advise on how to proceed further. Please let me know whether i am good with the install...

Thanks for your time and patience sir..
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Installation issues for Image::Magick on Solaris 10

Post by magick »

Your installation is working fine. After a PerlMagick test is run, it displays the results on an X server. You don't have one so it throws an exception you can safely ignore.
prash358
Posts: 36
Joined: 2011-09-01T09:40:03-07:00
Authentication code: 8675308

Re: Installation issues for Image::Magick on Solaris 10

Post by prash358 »

Thank you very much fir your time and patience in making this installation successful.
Post Reply