image :: magick不是从dwimperl的perl v5.14.2中使用cpan安装的

时间:2013-08-23 18:25:02

标签: image-processing install cpan

我正在尝试在运行Windows7 32位的新笔记本电脑上重建我的开发/测试环境。 imageMagick是我在旧笔记本电脑上安装(古代)版本的模块之一。我已经从dwimperl下载并安装了perl,这是v5.14.2并安装了几个模块,有几个没有安装。

  • cpanm Image :: Magick - 失败
  • cpanm DB_File - 失败
  • cpanm时间:: HiRes - 失败

我四处搜索并发现有关magick未能在v5.12上安装的讨论,但无法判断是否应该已修复,或者我是否需要尝试重新创建针对5.12讨论的修复

我应该尝试从草莓安装perl吗?看起来它有点新v5.18? 有什么我可以调整和重新运行cpan安装吗?

我从imagemagick安装二进制文件,首先从http://www.imagemagick.org/script/binary-releases.php#windows安装二进制文件,然后再安装cpan,cpan仍然失败....

这是构建日志的最重要部分,直到它真正向南的地方并开始出错:

cpanm (App::cpanminus) 1.6941 on perl 5.014002 built for MSWin32-x86-multi-thread
Work directory is C:\Users\dtbaker/.cpanm/work/1377281741.8420
You have make C:\Dwimperl\c\bin\dmake.exe
You have LWP 6.03
Falling back to Archive::Tar 1.80
Searching Image::Magick on cpanmetadb ...
--> Working on Image::Magick
Fetching http://www.cpan.org/authors/id/J/JC/JCRISTY/PerlMagick-6.86.tar.gz
-> OK
Unpacking PerlMagick-6.86.tar.gz
Entering PerlMagick-6.86
META.yml/json not found. Creating skelton for it.
Configuring PerlMagick-6.86
Running Makefile.PL
################################### WARNING! ###################################
# It seems that you are trying to install Perl::Magick on a MS Windows box with
# perl + gcc compiler (e.g. strawberry perl), however we cannot find ImageMagick
# binaries installed on your system.
#
# Please check the following prerequisites:
#
# 1) You need to have installed ImageMagick Windows binaries from
#    http://www.imagemagick.org/script/binary-releases.php#windows
#
# 2) We only support dynamic (DLL) ImageMagick binaries
#    note: it is not possible to mix 32/64-bit binaries of perl and ImageMagick
#
# 3) During installation select that you want to install ImageMagick's
#    development files (libraries+headers)
#
# 4) You also need to have ImageMagick's directory in your PATH
#    note: we are checking the presence of convert.exe and/or identify.exe tools
#
# 5) You might need Visual C++ Redistributable Package installed on your system
#    see instructions on ImageMagick's Binary Release webpage
#
# We are gonna continue, but chances for successful build are very low!
################################################################################
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lMagickCore-6.Q16
Writing Makefile for Image::Magick
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.62)
Building and testing Image-Magick-6.86
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\lib\ExtUtils\xsubpp  -typemap 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      -s -O2 -DWIN32  -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_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_CONFIG_H Magick.c
Magick.xs:60:31: error: magick/MagickCore.h: No such file or directory
Magick.xs:167: error: expected specifier-qualifier-list before 'MagickRealType'
Magick.xs:188: error: expected specifier-qualifier-list before 'ImageInfo'
Magick.xs:210: error: 'MagickNoiseOptions' undeclared here (not in a function)

1 个答案:

答案 0 :(得分:0)

  

但是我们找不到系统上安装的ImageMagick二进制文件。

ImageMagick是否在您的路径中,正如4)点所建议的那样?打开cmd.exe并输入convert -vconvert.exe -v。如果您没有看到有关Image Magick的信息(Windows有内置convert命令),则很可能you have to add it to your path

您还必须检查点1),3)和5)。之后再次尝试通过cpanm运行安装过程。