Error while installing Image::Magick module
Posted: 2013-10-18T02:18:26-07:00
I am trying to install Image::Magick on Strawberry Perl in windows 7... Able to create Makefile and unable to perform next further steps.
My Operation system : Windows7
Strawberry Perl is installed in(Strawberry with Padre editor) : C:\Dwimperl\perl\bin\perl.exe
Perl version : v5.14.2
Image::Magick module with version : PerlMagick 5.6.8
make type : dmake
Before this I have downloaded dll executable from website : ImageMagick-6.8.7-0-Q8-x86-dll.exe
(my windows7 is 32 bit and have opted the above exe)
Step 1:
As the first step I have installed ImageMagick-6.8.7-0-Q8-x86-dll.exe with all the options(checkboxes) like Install development headers,Add applica
tion directory etc).
After that verified the installation with convert.exe ... It worked fine.
Step2 :
Made sure that Visual C++ development enviornment is instlaled in my system.
Step 3 :
Downloaded the Image::Magick module to desktop and unzipped that and then in the command prompt typed
> perl Makefile.PL
Now executed the command dmake
The above are the exact steps that I followed....
Could anyone please let me know what went wrong.... and where I made the mistake ?
I'm struggling a lot since last four days completely to install this module but no luck....
And after browsing for the cause of this error... Some where in the blog I learned that one time { } should be removed to ARGV in makefile.
but still no luck.
My Operation system : Windows7
Strawberry Perl is installed in(Strawberry with Padre editor) : C:\Dwimperl\perl\bin\perl.exe
Perl version : v5.14.2
Image::Magick module with version : PerlMagick 5.6.8
make type : dmake
Before this I have downloaded dll executable from website : ImageMagick-6.8.7-0-Q8-x86-dll.exe
(my windows7 is 32 bit and have opted the above exe)
Step 1:
As the first step I have installed ImageMagick-6.8.7-0-Q8-x86-dll.exe with all the options(checkboxes) like Install development headers,Add applica
tion directory etc).
After that verified the installation with convert.exe ... It worked fine.
Step2 :
Made sure that Visual C++ development enviornment is instlaled in my system.
Step 3 :
Downloaded the Image::Magick module to desktop and unzipped that and then in the command prompt typed
> perl Makefile.PL
Code: Select all
C:\Users\sripathg\Desktop\ImagaMagick related\PerlMagick-6.86\PerlMagick-6.86>pe
rl Makefile.PL
Gonna create 'libMagickCore.a' from 'C:\Program Files\ImageMagick-6.8.7-Q8\CORE_
RL_magick_.dll'
Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lMagickCore-6.Q16
Generating a dmake-style Makefile
Writing Makefile for Image::Magick
Writing MYMETA.yml and MYMETA.json
Now executed the command dmake
Code: Select all
C:\Users\sripathg\Desktop\ImagaMagick related\PerlMagick-6.86\PerlMagick-6.86>dmake
dmake: makefile: line 450: Warning: -- Macro `BOOTSTRAP' redefined after use
cp Magick.pm blib\lib\Image\Magick.pm
AutoSplitting blib\lib\Image\Magick.pm (blib\lib\auto\Image\Magick)
C:\Dwimperl\perl\bin\perl.exe C:\Dwimperl\perl\site\lib\ExtUtils\xsubpp -typema
p C:\Dwimperl\perl\lib\ExtUtils\typemap -typemap typemap Magick.xs > Magick.xsc
&& C:\Dwimperl\perl\bin\perl.exe -MExtUtils::Command -e mv -- Magick.xsc Magick
.c
gcc -c -I"C:\Program Files\ImageMagick-6.8.7-Q8\include" -s -O2 -DWIN32
-DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLI
CIT_SYS -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"6.86\"
-DXS_VERSION=\"6.86\" "-IC:\Dwimperl\perl\lib\CORE" -D_LARGE_FILES=1 -DHAVE_CO
NFIG_H Magick.c
Magick.o:Magick.c:(.text+0x31711): undefined reference to `_imp__FormatLocaleStr
ing'
Magick.o:Magick.c:(.text+0x3173d): undefined reference to `_imp__DestroyExceptio
nInfo'
Magick.o:Magick.c:(.text+0x318ac): undefined reference to `_imp__AnimateImages'
Magick.o:Magick.c:(.text+0x318b9): undefined reference to `_imp__CatchImageExcep
tion'
Magick.o:Magick.c:(.text+0x318cf): undefined reference to `_imp__InheritExceptio
n'
Magick.o:Magick.c:(.text+0x3195d): undefined reference to `_imp__ThrowMagickExce
ption'
collect2: ld returned 1 exit status
dmake: Error code 129, while making 'blib\arch\auto\Image\Magick\Magick.dll'
The above are the exact steps that I followed....
Could anyone please let me know what went wrong.... and where I made the mistake ?
I'm struggling a lot since last four days completely to install this module but no luck....
And after browsing for the cause of this error... Some where in the blog I learned that one time { } should be removed to ARGV in makefile.
but still no luck.