Operating System Version -> Sun Solaris 10 (Sparc - 64bit)
ImageMagick Version -> 6.3.4
PerlMagick Version -> 6.3.4
I was able to compile and install this on a Test server with GCC with relatively few problems. I now have to move this into a Production environment where GCC is not available. To enable this, I created a Sun Solaris package for both ImageMagick and PerlMagick. Both packages installed correctly. I have validated that the ImageMagick '.so' files are correctly linked via ldd.
Code: Select all
sub IMGINFO {
print "Image: $img\n";
print "II1\n";
print LOG "Processing file: $img.....";
$image = new Image::Magick;
print "II2\n";
$x_err = $image->Read("$img");
warn "$x_err" if "$x_err";
print "II3\n";
($h, $w) = $image->Get('height', 'width');
....
I set MAGICK_DEBUG=resource from the shell and invoked the script again. Here is the output:
Code: Select all
2008-03-06T14:11:03-05:00 0:01 0.140u 6.3.4 Resource PerlMagick[29302]: resource.c/unknown/418/Resource
/var/tmp/magick-XX4kaWo5