Page 1 of 1
Issues with perlMagick
Posted: 2013-04-08T14:06:16-07:00
by abjones
I am running
- Windows Server 2003
ActivePerl-5.16.1.1601-MSWin32-x86-296175.msi
ImageMagick-6.8.4-8-Q8-x86-dll.exe
Issue 1. PerlMagick selection states it is for 5.16.1, but ActiveState perl is up to 5.16.3, so I uninstalled 5.16.3 just to be sure that was not a problem.
Command line ImageMagick runs OK from CMD:
creates an image file.
Issue 2. PerlMagick will not run
Code: Select all
#perl
use strict;
use Image::Magick;
my $image=Image::Magick->new;
returns
&Image::Magick::constant not defined. The required ImageMagick libraries are not installed or not installed properly.
Observation 1: PerlMagick ppm states it is Image-Magick 6.83 when loading; perhaps not a problem.
Observation 2: I am successfully able to run older PerlMagick when installing
- ActivePerl-5.16.3.1603-MSWin32-x86-296746.msi
ImageMagick-6.8.4-3-Q8-x86-dll.exe
Observation 3: my problems began with
- ImageMagick-6.8.4-4-Q8-x86-dll.exe
so I am stuck at 6.8.4-3 ( which also claims it is Image-Magick 6.83 )
Any polite
advice is welcome.
Re: Issues with perlMagick
Posted: 2013-04-18T11:16:27-07:00
by wwwebsurfer
PerlMagick, at least when installed from CPAN, appears to be Q16 only. If you're running Q8 it's going to look for MagickCore-Q16, which doesn't exist.
Try installing the Q16 version and running everything again - it's the only way I could get PerlMagick working on my server.
Also see
viewtopic.php?f=2&t=22477 , you may need to edit the MakeFile.PL
Re: Issues with perlMagick
Posted: 2013-05-02T11:18:25-07:00
by dez
I'm also getting this error.
I do not have any previous versions of ImageMagick installed. I am compiling perl and ImageMagick using visual studio 2010:
Code: Select all
1) download perl source code and extract it
2) cd to perl-5.14.4\win32
3) edit makefile so that it references the correct version of visual studio and change the install path (the install path is in my %PATH%)
4) build perl using nmake, nmake test, nmake install (this works fine)
5) build ImageMagick and PerlMagick using the following:
a) uncompress the zip file downloaded from imagemagick.org
b) cd to VisualMagick\configure
c) run devenv configure.sln /Upgrade
d) run MSBuild configure.sln /property:Configuration=Release
e) run configure.exe edit the magick-baseconfig.h change MAGICKCORE_QUANTUM_DEPTH to 8 instead of 16, accept all defaults click Next etc. until finished.
f) cd ..
g) run devenv VisualDynamicMT.sln /Upgrade (to convert the solution to vs2010 format)
h) run MSBuild -ArgumentList VisualDynamicMT.sln /property:Configuration=Release (this works fine, some warnings, no errors)
i) cd ..\contrib\win32\ATL7\ImageMagickObject
j) run BuildImageMagickObject clean
k) run BuildImageMagickObject release
l) I then copy all dlls and exe files to a folder in my %PATH%
m) cd back to base ImageMagick directory
n) cd to PerlMagick
o) run perl Makefile.nt
p) run nmake
q) run nmake test (this fails all tests with the same error: &Image::Magick::constant not defined. The required ImageMagick libraries are not installed or not installed properly.)
I am not sure what to do here, if I revert back to version 6.8.3 all this works fine. Something happened between then and now to cause this process to fail.
Editing the Makefile.PL doesn't work for me, as per instructions in the Readme, I'm using Makefile.nt which doesn't specify Q16 anywhere in it.
Thanks for any assistance.
--
Dez.
Re: Issues with perlMagick
Posted: 2013-05-08T13:47:32-07:00
by dez
Just to update, I tested 6.8.4-2 and it did not have this issue either. I don't have any other 6.8.4 builds available to test. Where can I find the ones between -2 and -10?
Re: Issues with perlMagick
Posted: 2013-05-09T12:01:17-07:00
by abjones
Just tried ImageMagick-6.8.5-5-Q8-x86-dll.exe and the problem still exists.
Binaries are supposed to be available from sites listed on page
http://imagemagick.sourceforge.net/http ... hives.html, but that list does not seem very up to date.
I took a risk
and used a site not listed there but found with a web search
archive image magick binary
Re: Issues with perlMagick
Posted: 2013-05-09T16:43:25-07:00
by magick
Download
http://www.imagemagick.org/download/bin ... 86-dll.exe. Its really 6.8.5-6, it has a working version of PerlMagick. We'll update the other binaries by sometime this weekend.
Re: Issues with perlMagick
Posted: 2013-05-11T15:11:29-07:00
by MikeWJ
I'm a new user starting today with 64-bit win 7, activestate perl 5.16.3, imagemagick 6.8.5-Q15, dynamic 64 bit.
Same problem with this error as soon as the code gets as far as new Image::Magick. The link posted at 00:43 on 2013-05-10 is not now working so magick, please can you post a note here when the update is done? Please could you also mention what steps (ie how thorough) install is needed; like I said I am using the product to day for the first time. Many thanks. Mike Wynne-Jones
Re: Issues with perlMagick
Posted: 2013-05-11T16:58:37-07:00
by magick
Download ImageMagick-6.8.5-6 and let us know if you still have problems with PerlMagick.
Re: Issues with perlMagick
Posted: 2013-05-11T23:41:54-07:00
by MikeWJ
Looks like you fixed it with that update to ImageMagick-6.8.5-6. Many thanks.