Page 1 of 1

Installation issues for Image::Magick Lion 10.7.2 XAMPP

Posted: 2011-11-09T14:31:17-07:00
by greendaviddude
I'm trying to play around with Image::Magick on my MacBook Air with Lion 10.7.2 and XAMPP.

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
The convert command tool works.

My problem is with XAMPP. When PerlMagick is installed it's files are put here:


and 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/ line 204.\n at line 18\nCompilation failed in require at line 18.\nBEGIN failed--compilation aborted at line 18.\nCompilation failed in require at /Users/greendaviddude/Sites/examples_ajax/ line 9.\nBEGIN failed--compilation aborted at /Users/greendaviddude/Sites/examples_ajax/ line 9.\n

Any suggestions on how to get this to work with XAMPP. :?