Issues with perlMagick

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
abjones
Posts: 33
Joined: 2004-03-26T12:21:59-07:00

Issues with perlMagick

Post 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:

Code: Select all

convert logo: logo.gif
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 :shock: advice is welcome. :)
wwwebsurfer
Posts: 3
Joined: 2012-01-11T14:33:16-07:00
Authentication code: 8675308

Re: Issues with perlMagick

Post 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
dez
Posts: 15
Joined: 2013-05-02T10:52:09-07:00
Authentication code: 6789

Re: Issues with perlMagick

Post 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.
dez
Posts: 15
Joined: 2013-05-02T10:52:09-07:00
Authentication code: 6789

Re: Issues with perlMagick

Post 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?
abjones
Posts: 33
Joined: 2004-03-26T12:21:59-07:00

Re: Issues with perlMagick

Post 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 :shock: and used a site not listed there but found with a web search
archive image magick binary
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Issues with perlMagick

Post 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.
MikeWJ
Posts: 2
Joined: 2013-05-11T14:52:38-07:00
Authentication code: 6789

Re: Issues with perlMagick

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Issues with perlMagick

Post by magick »

Download ImageMagick-6.8.5-6 and let us know if you still have problems with PerlMagick.
MikeWJ
Posts: 2
Joined: 2013-05-11T14:52:38-07:00
Authentication code: 6789

Re: Issues with perlMagick

Post by MikeWJ »

Looks like you fixed it with that update to ImageMagick-6.8.5-6. Many thanks.
Post Reply