Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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!

share|improve this question

closed as off topic by MDMarra, Dennis Kaarsemaker, Hauke Laging, Ward, mdpc Jun 7 '13 at 5:11

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

3 Answers 3

up vote 1 down vote accepted

Let me google that for you.....

http://matthew.mceachen.us/blog/macports-fails-to-compile-p5-perlmagick-731.html

share|improve this answer
    
@solefald - Almost as fast as Googling it myself. Thanks for your help in pointing out what I should have been right in front of my face! –  Russell C. Apr 30 '10 at 23:38

An alternative to using ports is homebrew, which works very well for me.

Just use $ brew install imagemagick and you should be fine (without any ports headache)

share|improve this answer
    
How about perlmagick? Can't seem to find a homebrew alternative for that –  pixelfreak May 18 '12 at 22:30

try these handy prepackaged installers for OS X 10.5 +

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.