2
votes

Has anyone had any success recently installing imagemagick/perlmagick on Windows with recent versions of strawberry perl? I have read and tried many of the things suggested that I found online however none is very recent and none has worked for me. I've added all the imagemagick folders to the path as well. Seems there is a problem with finding the right files with imagemagick install. I have tried adding directories to the make file but still always errors out with

 Magick.xs:60:10: fatal error: magick/MagickCore.h: No such file or directory
 #include <magick/MagickCore.h>
          ^~~~~~~~~~~~~~~~~~~~~

Versions: perl 5.30.2x64-multi-thread, ImageMagick-7.0.10-31-Q8-x64-dll, Windows server 2019. Any help or direction here is appreciated.

1
The message indicates that compilation process is require MagickCore.h file. You need source code of the imagemagic to be available for compilation process. - Polar Bear
@PolarBear indeed, I had install this package in ubuntu, must have imagemagick install first. - Han.Oliver
@Han.Oliver - OP does not specify what OS he works with. In your case as you use Linux you need [package]-dev be installed - development package includes required header files. - Polar Bear
Yes I specified windows server 19 with strawberry perl - Tim
Tried, and can reproduce. Even when checking the box to install convert. Busy now. Will look at it in ~5 hours, or maybe tomorrow. - ikegami

1 Answers

0
votes

You appear to have installed ImageMagic v7, which is not backwards compatible with v6. The Image::Magick on CPAN requires ImageMagick v6.

(That said, I got test failures when trying to install Image::Magick with the latest binary of v6. I'm not the only one.)