DarkBlue has asked for the wisdom of the Perl Monks concerning the following question:

Can anyone help with this?
Platform: Win2K (SP2), Apache 1.3.20, mod_perl 1.26_01-dev.
Perl Library: Image-Magick 5.26

I have downloaded the ImageMagick binaries for Win2K. I copied the entire ImageMagick directory into Apache/site/lib (thus Apache/site/lib/ImageMagick/*.*).
Perl source includes: use Image::Magick;
Result a "500 Server Error". Apache log includes the following lines:

Prototype mismatch: sub Apache::ROOT::shapeshifter::system::image_libr +ary_2ecgi::Transparent vs ($;@) at E:/Apache/lib/Exporter.pm line 57. at e:/apache/htdocs/shapeshifter/system/image_library.cgi line 14 Prototype mismatch: sub Apache::ROOT::shapeshifter::system::image_libr +ary_2ecgi::Opaque vs ($;@) at E:/Apache/lib/Exporter.pm line 57.

I suspect that this is because Image-Magick (module) does not know where to find ImageMagick (binaries, etc).

Question: How/where do I install the binaries on the platform described here so that I can use ImageMagick in my CGIs?

 

In theory, there is no difference between theory and practise.  But in practise, there is.
 
Jonathan M. Hollin
Digital-Word.com

Replies are listed 'Best First'.
Re: Installing Image::Magick
by $code or die (Deacon) on Oct 03, 2001 at 20:01 UTC
    Hi,

    I am sure the documentation explains how it works - If I remember correctly, you need to have the binaries in your path.

    However, if you are running ActivePerl, just type "ppm install Image::Magick" into a command prompt. it will install everything you need - it's a 1MB download as opposed the the full ImageMagick binary dist which is about 5mb.

    Simon Flack ($code or die)
    $,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
    =~y'_"' ';eval"die";print $_,lc substr$@,0,3;

      Simon,

      The documentation is terrible - I can't find any mention of binary installation.

      Anyway - the ImageMagick files are in my path and the Image::Magick module is installed.

      Thanks anyway.

       

      In theory, there is no difference between theory and practise.  But in practise, there is.
       
      Jonathan M. Hollin
      Digital-Word.com
        Hi Johnathan,

        Yeah, I've found the docs a bit difficult to parse at times. But if you look at the Windows NT\95 section of the docs, it explains that You need to download the source code, do something with nmake and copy a couple of dlls into a folder in your path. Then you should install the Image::Magick module. It doesn't say exactly what you are going to do with nmake, but I imagine it's in a readme file somewhere.

        Anyway - the ImageMagick files are in my path and the Image::Magick module is installed.
        I suggest you install it using PPM. You don't need to download and install the binaries or the source for ImageMagick - you just use ppm to install the module - which is already compiled to run on Windows and it copies all the files (including the two .dll's) to the correct place.

        It's as easy as: "ppm install Image::Magick"

        Simon Flack ($code or die)
        $,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
        =~y'_"' ';eval"die";print $_,lc substr$@,0,3;