Installing ImageMagick on Mac OSX 10.6
Posted
by Russell C.
on Server Fault
See other posts from Server Fault
or by Russell C.
Published on 2010-04-30T23:18:10Z
Indexed on
2010/04/30
23:28 UTC
Read the original article
Hit count: 491
I just got a new Mac and am trying to setup a local Perl development environment. I'm using MAMP but also need the ImageMagick perl module installed in order to do some of the photo processing our scripts require. I tried installing ImageMagick manually but ran into some issues and after reading online a lot of people reported having issues going this route. The general consensus was to install it using MacPorts instead so I went ahead and installed MacPorts. Unfortunately, MacPorts can't seem to install it successfully either. Here is the command I'm using to try to install ImageMagick:
sudo port install p5-perlmagick
And here are all the errors reported during install:
---> Computing dependencies for p5-perlmagick
---> Building p5-perlmagick
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-perlmagick/work/PerlMagick-6.32" && /usr/bin/make -j2 all " returned error 2
Command output: Magick.xs:10918: error: 'struct Methods' has no member named 'exception'
Magick.xs:10918: error: request for member 'severity' in something not a structure or union
Magick.xs:10918: error: 'ErrorException' undeclared (first use in this function)
Magick.xs:10919: error: 'struct Methods' has no member named 'exception'
Magick.xs:10920: warning: implicit declaration of function 'GetImageException'
Magick.xs:10922: error: 'struct PackageInfo' has no member named 'image_info'
Magick.xs:10922: error: 'struct Methods' has no member named 'adjoin'
Magick.xs:10929: error: request for member 'severity' in something not a structure or union
Magick.xs:10929: error: 'UndefinedException' undeclared (first use in this function)
Magick.xs:10929: error: request for member 'severity' in something not a structure or union
Magick.xs:10929: error: request for member 'reason' in something not a structure or union
Magick.xs:10929: error: request for member 'severity' in something not a structure or union
Magick.xs:10929: error: request for member 'reason' in something not a structure or union
Magick.xs:10929: warning: pointer/integer type mismatch in conditional expression
Magick.xs:10929: error: request for member 'description' in something not a structure or union
Magick.xs:10929: error: request for member 'description' in something not a structure or union
Magick.xs:10929: error: request for member 'severity' in something not a structure or union
Magick.xs:10929: error: request for member 'description' in something not a structure or union
Magick.xs:10929: warning: pointer/integer type mismatch in conditional expression
Magick.xs:10929: error: request for member 'description' in something not a structure or union
Magick.xs:10929: warning: passing argument 2 of 'Perl_sv_catpv' from incompatible pointer type
Magick.xs:10929: warning: unused variable 'message'
Magick.xs:10856: warning: unused variable 'filename'
Magick.c:10784: warning: unused variable 'ref'
Magick.c:10777: warning: unused variable 'ix'
Magick.xs: In function 'boot_Image__Magick':
Magick.xs:2122: warning: implicit declaration of function 'InitializeMagick'
Magick.xs:2123: warning: implicit declaration of function 'SetWarningHandler'
Magick.xs:2124: warning: implicit declaration of function 'SetErrorHandler'
make: *** [Magick.o] Error 1
Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get complete output.
I have no idea what the problem might be or how to go about successfully installing ImageMagick. I'd appreciate any help & advice that someone out there that has done this successfully might be able to provide. Thanks in advance!
© Server Fault or respective owner