无法找到模块Image :: Magick的可加载对象

时间:2013-12-13 15:12:57

标签: perl perl-module

我在perl中安装了Image :: Magick。见下面的安装窗口。但显示错误“无法找到模块Image :: Magick的可加载对象”。请找到解决方案。

安装窗口:

cpan[1]> install Image::Magick
?[32mReading 'C:\Documents and Settings\sukumar.s\Local Settings\Application Dat
a\.cpan\Metadata'?[0m
?[32m  Database was generated on Tue, 05 Nov 2013 20:53:02 GMT?[0m
?[32mImage::Magick is up to date (6.86).?[0m
?[32m?[0m

错误窗口:

Can't locate loadable object for module Image::Magick in @INC (@INC contains: C:
/Perl/site/lib C:/Perl/lib .) at e:\1.pl line 2.
Compilation failed in require at e:\1.pl line 2.
BEGIN failed--compilation aborted at e:\1.pl line 2.

我的计划:

use strict;
use Image::Magick;
print "Image::Magick is processing ... \n";

Cmd:cpan force install Image :: Magick(错误)

            Magick.xs:14062: error: dereferencing pointer to incomplete type
            Magick.xs:14069: error: `UndefinedException' undeclared (first use in this funct
            ion)
            Magick.xs: In function `boot_Image__Magick':
            Magick.xs:2384: error: `MagickFalse' undeclared (first use in this function)
            Magick.xs:2388: warning: assignment makes pointer from integer without a cast
            dmake.exe:  Error code 129, while making 'Magick.o'
            ?[32m  JCRISTY/PerlMagick-6.86.tar.gz?[0m
            ?[31m  C:\Perl\site\bin\dmake.exe -- NOT OK?[0m
            ?[32mRunning make test?[0m
            ?[32m  Can't test without successful make?[0m
            ?[32mRunning make install?[0m
            ?[32m  Make had returned bad status, install seems impossible?[0m

S上。萨库马尔

2 个答案:

答案 0 :(得分:2)

您使用的是哪种Perl发行版? PerlMagick开箱即用,活跃状态为ppm。

如果您使用其他发行版,则可以安装此模块 通过下载Windows版本的源代码 ImageMagick (Download Area)。解压缩二进制文件并输入

cd ImageMagick-.../PerlMagick
perl Makefile.net
nmake
nmake install

您可以找到有关安装here的更多信息。

ImageMagick troubleshooting forum可能会对您有所帮助。

答案 1 :(得分:1)

Image::Magick的安装是最新的但不完整。模块的Perl部分无法找到二进制组件。

您应该使用

重新安装Image::Magick
cpan force install Image::Magick

如果发生任何错误,请向其报告。