Feed

makevoid's blog

29 Jun 2010

Install ImageMagick +perl on OSX with macports

ImageMagick logo

Here’s a simple solution to install ImageMagick with perl bindings on OSX 10.6 Snow Leopard.

Once you know how to do it it’s really simple, macports is very good at handling packages dependencies.

I have a perl script that i need to run that uses ImageMagick perl lib ( use Image::Magick; )

I found that the easiest way to run it is to install perl from macports and then imagemagick with perl bindings.

> sudo port install perl5.10
> sudo port install imagemagick +perl

and you’re done!

note:

If you want to switch macport’s perl as your main perl put this in your .bashrc / .bash_profile:

export PATH=/opt/local/bin:$PATH

then in your shell:

> source ~/.bash_profile
> which perl
>> /opt/local/bin/perl

yes!

...
 
back to posts