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

salutations,

we downloaded and installed ImageMagick 6.3.5-10-Q16 for Windows at http://www.imagemagick.org/script/binary-releases.php#windows. in the installation, it gives the choice of installing the Perl module.

we installed the Perl module and created a Perl file with the following line:

use Image::Magick;

but it gave us the following error:

Can't load 'C:/Perl/site/lib/auto/Image/Magick/Magick.dll' for module Image::Magick: load_file:The specified procedure could not be found at C:/Perl/lib/DynaLoader.pm line 230. at - line 1

we use ActivePerl 5.8.8 in Windows, and Apache HTTP Server 2.2.4.

any ideas?

thanks in advance.

Replies are listed 'Best First'.
Re: Image::Magick module not working
by roboticus (Chancellor) on Sep 24, 2007 at 00:51 UTC
    pc2:

    Have you checked the directory it's complaining about to see if the DLLs are there? (They could have incorrect permissions, or be corrupted.)

    Have you looked around on your computer for the Magick.dll in case it's installed in a different location than your perl installation expected?

    ...Roboticus

      salutations, we checked the c:\perl\site\lib\auto\Image\Magick folder, and there was the Magick.dll file it was asking for. we also checked the C:\Program Files\ImageMagick-6.3.5-Q16 and copied its DLL files to the c:\perl\site\lib\auto\Image\Magick folder (as it was suggested somewhere), but it still didn't work. any ideas? salutations.
        If the DLL is there, then from the error message I'd suspect a version error (the method it's trying to call may have been added/deleted in later version) or perhaps the file permissions.

        ...roboticus