I am unable to get ikiwiki to find imagemagick. I want to use homebrew to have imagemagick as well as perl in a recent version, but it seems that ikiwiki is unable to locate these installs. ikiwiki itself has been installed via pkgsrc. I'm on OSx 10.11.4.
Either that, or get all the layers of this stack from Homebrew. Mixing two sources of non-OS-provided add-ons seems unlikely to work without specially configuring one of them to look in the other's installation directory.
I use the
img
plugin on my site. ikiwiki, perl, and imagemagick are all installed from pkgsrc on my laptop (OS X 10.11.5) and server (NetBSD 7.0.1). As the pkgsrc package maintainer for ikiwiki, if something's broken for you, I'd like to fix it.cd www/ikiwiki && make install
automatically brings in Perl as one of many runtime dependencies. (Usually it's the most recent stable perl, though at the moment it's still 5.22.2. I'm a little surprised we're not already on 5.24.0.)If you define
PKG_OPTIONS.ikiwiki+=imagemagick
in/etc/mk.conf
, then installing ikiwiki will also automatically bring in ImageMagick and its Perl bindings.If you don't define that option, you can install them yourself with
cd graphics/p5-PerlMagick && make install
.What have you tried? What happened when you tried?
Hm. Maybe the problem is more that I don't understand what needs to happen to make imagemagick available for ikiwiki. I though it would be enough to install imagemagick and have my prefered perl in the path, but that seems not to be the case? I'm, also not sure what "
cd www/ikiwiki && make install
automatically brings in Perl" means. Aren't we installing ikiwiki etc. through pkgsrc withsudo pkgin -y install ikiwiki
? Am I mistaken that you suggesting building ikiwiki myself? Sorry, if I'm getting things wrong.What I though would need to happen:
This is wrong/not enough?
Oh and as regards to the part that fails: If I try to use the img directive, this is the inline error I see when browsing to the page where the picture should be.
[[!img Error: Image::Magick is not installed]]
I see. Yeah,
pkgin
should work fine too. (Since ikiwiki also depends on perl, if you installed ikiwiki first, you'd get perl that way just as well.)What's in your
$PATH
? When you get that in-page error, how are you running ikiwiki?This question helped me to solve the problem! I had the order wrong. First came brew, then the os, then pkgsrc. Now the right perl is found and with it imagemagick.
What should be the correct order for this to work?
?