我在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";
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上。萨库马尔
答案 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
如果发生任何错误,请向其报告。