Hey everyone, I have a problem with the img plugin/directive. I get an error stating "[[!img Error: Image::Magick is not installed]]". So the directive "tag" thingie is shown with an error where I had written the path to the image in the markdown file (of this blog post, in that caseā€¦). Any ideas why this might happen? Maybe a problem with my hoster, which is nearlyfreespeech (I couldn't install Image::Magick with either PERL5LIB=`pwd`/ikiwiki:`pwd`/ikiwiki/cpan:`pwd`/lib/perl5 PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::Shell->install("Image::Magick")' nor with PERL5LIB=`pwd`/ikiwiki:`pwd`/ikiwiki/cpan:`pwd`/lib/perl5 PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'CPAN::Shell->force(install => "Image::Magick")' which I both adapted from this tip. But in two admittedly very old (members only) forum posts (from 2003 and 2004, respectively) they said, they do indeed have support for PerlMagick.)?

Thanks in advance as allways for any help you can offer!

Okay. I figured it out with help from the nearlyfreespeech forum. It had nothing to do with ikiwiki. Nonetheless here's the solution, for posterity: You can check, if PerlMagick is installed by running perl -MImage::Magick -e "print $Image::Magick::VERSION". If it isn't, you will get an error that looks like this:

Can't locate Image/Magick.pm in @INC (@INC contains: /usr/local/lib/perl5/5.16/BSDPAN /usr/local/lib/perl5/site_perl/5.16/mach /usr/local/lib/perl5/site_perl/5.16 /usr/local/lib/perl5/5.16/mach /usr/local/lib/perl5/5.16 .). BEGIN failed--compilation aborted.

If that's the case, you might have to upgrade/switch to a new "realm". As of the time of this writing PerlMagick is installed in the realms "indigo" and "white". How this is done, is described in the members only FAQ of nfs.

Comment by openmedi Wed Oct 22 18:01:41 2014