I've used this setup to play around with apache, perl, mysql and perl modules in past and had minimal problems but getting Image::Magick to
work is not going well.
I've successfully added ImageMagick using:
Code: Select all
sudo port install imagemagick +perl
My problem is with XAMPP. When PerlMagick is installed it's files are put here:
In the past I've been able to copy the perl module files into the XAMPP directory structure and everything works but not this time.
When I copy the files in the location above I get this in my apache error file:
[Wed Nov 09 15:15:43 2011] [error] Can't load '/Applications/XAMPP/xamppfiles/lib/perl5/site_perl/5.10.1//darwin-2level/auto/Image/Magick/Magick.bundle' for module Image::Magick: dlopen(/Applications/XAMPP/xamppfiles/lib/perl5/site_perl/5.10.1//darwin-2level/auto/Image/Magick/Magick.bundle, 1): no suitable image found. Did find:\n\t/Applications/XAMPP/xamppfiles/lib/perl5/site_perl/5.10.1//darwin-2level/auto/Image/Magick/Magick.bundle: mach-o, but wrong architecture at /Applications/XAMPP/xamppfiles/lib/perl5/5.10.1/darwin-2level/DynaLoader.pm line 204.\n at Image.pm line 18\nCompilation failed in require at Image.pm line 18.\nBEGIN failed--compilation aborted at Image.pm line 18.\nCompilation failed in require at /Users/greendaviddude/Sites/examples_ajax/picupload.pl line 9.\nBEGIN failed--compilation aborted at /Users/greendaviddude/Sites/examples_ajax/picupload.pl line 9.\n
Any suggestions on how to get this to work with XAMPP.