perl - Trouble Using ImageMagick - Installed Thru Homebrew -


i installed imagemagick thru homebrew - seems, anyways - when tested thru perl using

perl -le 'use image::magick' 

i received error:

cant load '/library/perl/5.12/darwin-thread-multi-2level/auto/image/magick/magick.bundle' module image::magick: dlopen(/library/perl/5.12/darwin-thread-multi-2level/auto/image/magick/magick.bundle,  1): library not loaded: /usr/local/lib/liblzma.5.dylib   referenced from: /usr/local/lib/libmagickcore-6.q16.2.dylib   reason: image not found @ /system/library/perl/5.12/darwin-thread-multi-2level/dynaloader.pm line 204.  @ -e line 1 compilation failed in require @ -e line 1. begin failed--compilation aborted @ -e line 1. &image::magick::constant not defined. required imagemagick libraries not installed or not installed properly. end failed--call queue aborted @ -e line 1. 

i did research, , apparently perl not supported default when imagemagick installed through homebrew, tried installing perlmagick, imagemagick api perl. used following commands after downloading source:

  • cd documents/perlmagick-6.88
  • perl makefile.pl
  • make
  • sudo make install

so thought installed perlmagick, yet didn't change situation in slightest. i'm new imagemagick , homebrew (just converted macports), may doing wrong here.

anyone have idea how resolve situation? specifically, cause of

library not loaded: /usr/local/lib/liblzma.5.dylib 

error?

you don't need install perlmagick manually since using homebrew install imagemagick.

try this:

$ brew uninstall imagemagick $ brew install imagemagick --with-perl 

hope helps.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -