DLL Problems in 64-Bit Windows v7.0.1-x Distributions
Posted: 2016-06-04T13:59:54-07:00
Hello All,
I posted this question to the PerlMagick forum, and thought I would try my luck here. I'm not sure if this is a bug, but Windows and Perl are complaining about the DLLs that come with the Windows distributions.
I'm running Perl v5.20.2 built for MSWin32-x64-multi-thread on a 64-bit Windows Server 2008 R2 Enterprise machine. I had been using PerlMagick installed with the DLLs that came with ImageMagick v6.9.3 without issue, but I can't get the same script to work with the DLLs from v7.0.1-6, v7.0.1-8, and v7.0.1-9. I am sure that I'm downloading the proper distributions (those specified to work on 64-bit Windows machines).
When I run the script, an error dialogue box titled "perl.exe - Bad Image" pops up with the following message:
Line 16 of the script is just loading the module. Similarly, a command line script that only tries to load the Perl module fails with the same results.
Could it be that a DLL built for a 32-bit system made its way into the 64-bit distribution?
For what it's worth, simple testing of the "magick" command has been successful.
Thank you very much.
I posted this question to the PerlMagick forum, and thought I would try my luck here. I'm not sure if this is a bug, but Windows and Perl are complaining about the DLLs that come with the Windows distributions.
I'm running Perl v5.20.2 built for MSWin32-x64-multi-thread on a 64-bit Windows Server 2008 R2 Enterprise machine. I had been using PerlMagick installed with the DLLs that came with ImageMagick v6.9.3 without issue, but I can't get the same script to work with the DLLs from v7.0.1-6, v7.0.1-8, and v7.0.1-9. I am sure that I'm downloading the proper distributions (those specified to work on 64-bit Windows machines).
When I run the script, an error dialogue box titled "perl.exe - Bad Image" pops up with the following message:
After clicking "ok" on the dialogue box, Perl continues with this output to STDERR:C:\Strawberry\perl\site\lib\auto\Image\Magick\Magick.xs.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original media or contact your system administrator or software vendor for support
Code: Select all
W:\>perl \Scripts\check_imgs.pl 001.tif
Can't load 'C:/Strawberry/perl/site/lib/auto/Image/Magick/Magick.xs.dll' for module Image::Magick: load_file:%1 is not a valid Win32 application at C:/Strawberry/perl/lib/DynaLoader.pm line 193. at \Scripts\check_imgs.pl line 16.
Compilation failed in require at \Scripts\check_imgs.pl line 16.
BEGIN failed--compilation aborted at \Scripts\check_imgs.pl line 16.
Code: Select all
perl -e "use Image::Magick"
For what it's worth, simple testing of the "magick" command has been successful.
Thank you very much.