2

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.

ikegami
  • 367,544
  • 15
  • 269
  • 518
Tim
  • 57
  • 4
  • 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 Sep 29 '20 at 16:49
  • @PolarBear indeed, I had install this package in ubuntu, must have imagemagick install first. – Han.Oliver Sep 29 '20 at 18:38
  • @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 Sep 29 '20 at 18:40
  • Yes I specified windows server 19 with strawberry perl – Tim Sep 29 '20 at 21:43
  • 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 Sep 29 '20 at 22:47

1 Answers1

0

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.)

ikegami
  • 367,544
  • 15
  • 269
  • 518