perlquestion
jdporter
<p>
I'm trying to install [mod://Image::Magick] on [http://StrawberryPerl.com/|Strawberry Perl], and getting an error.
</p>
<c>
% path
PATH=C:\Program Files\ImageMagick-6.7.8-Q16;c:\strawberry\c\bin;C:\strawberry\perl\bin; . . .
</c>
<c>
% perl -v
This is perl 5, version 16, subversion 0 (v5.16.0) built for MSWin32-x64-multi-thread
</c>
<c>
% convert -version
Version: ImageMagick 6.7.8-7 2012-07-29 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
</c>
<p>So here we go:</p>
<code>
% cpan install Image::Magick
. . .
Note (probably harmless): No library found for -lMagickCore
Writing Makefile for Image::Magick
Writing MYMETA.yml and MYMETA.json
CPAN: Module::CoreList loaded ok (v2.66)
cp Magick.pm blib\lib\Image\Magick.pm
AutoSplitting blib\lib\Image\Magick.pm (blib\lib\auto\Image\Magick)
C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp -typemap C:\strawberry\perl\lib\ExtUtils\typemap -typemap typemap Magick.xs > Magick.xsc && C:\strawberry\perl\bin\perl.exe -ME
xtUtils::Command -e mv -- Magick.xsc Magick.c
gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"6.77\" -DXS_VER
SION=\"6.77\" "-IC:\strawberry\perl\lib\CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c
Magick.xs:60:31: fatal error: magick/MagickCore.h: No such file or directory
compilation terminated.
dmake.exe: Error code 129, while making 'Magick.o'
JCRISTY/PerlMagick-6.77.tar.gz
C:\strawberry\c\bin\dmake.exe -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Stopping: 'install' failed for 'Image::Magick'.
</code>
<c>
% dir /s /b "c:\Program Files\ImageMagick-6.7.8-Q16\MagickCore.h"
c:\Program Files\ImageMagick-6.7.8-Q16\include\magick\MagickCore.h
</c>
<p>
So my first thought is, How do I pass the hint to gcc about where to find MagickCore.h?
<br>But I suspect there's something more fundamentally wrong with my setup.
</p>
<p>In case it helps:</p>
<c>
% gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/strawberry/c/bin/../libexec/gcc/x86_64-w64-mingw32/4.6.3/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../src/gcc-4.6.3/configure --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --enable-languages=c,c++,fortran,objc,obj-c++ --enable-libgomp --enable-lto --enable-bootstrap
--enable-checking=release --enable-version-specific-runtime-libs --disable-multilib --disable-nls --disable-win32-registry --disable-werror --with-pkgversion='gcc-4.6.3 release with patches [build 201
20411 by perlmingw.sf.net]' --with-sysroot=/gccbuild/prefix/mingw64 --with-gmp=/gccbuild/prefix/mingw64 --with-mpfr=/gccbuild/prefix/mingw64 --with-mpc=/gccbuild/prefix/mingw64 --with-ppl=/gccbuild/pr
efix/mingw64 --with-cloog=/gccbuild/prefix/mingw64 --with-bugurl=http://mingwfp.znix.com --with-gnu-ld --prefix=/gccbuild/prefix/mingw64 --with-local-prefix=/gccbuild/prefix/mingw64 --with-libiconv-pr
efix=/gccbuild/prefix/mingw64
Thread model: win32
gcc version 4.6.3 (gcc-4.6.3 release with patches [build 20120411 by perlmingw.sf.net])
</c>
<div class="pmsig"><div class="pmsig-170442">
I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies[523120|.]
</div></div>