我試圖在運行windows7 32位的新筆記本電腦上重建我的開發/測試環境。 imageMagick是我在舊筆記本電腦上安裝(古代)版本的模塊之一。我已經從dwimperl下載並安裝了perl,它是v5.14.2並且安裝了幾個模塊,有幾個沒有安裝。image :: magick未安裝cpan in perl v5.14.2 from dwimperl
- cpanm圖片:: Magick - 失敗
- cpanm DB_File - 失敗
- cpanm時間::高分辨率 - 失敗
我尋找了一圈,發現沒有安裝在V5上magick的討論.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)
爲什麼安裝失敗,您是否有比您列出的「失敗」消息更多的信息? – Syon
這裏是從cpanm生成日誌: –
我不能粘貼在生成日誌中,它太長了......它給出的第一個錯誤是......開箱PerlMagick-6.86.tar.gz 輸入PerlMagick-6.86 未找到META.yml/json。爲它創建skelton。 配置PerlMagick-6.86 運行Makefile.PL ###################################警告! ################################### #你似乎試圖安裝Perl :: Magick on一個帶有 #perl + gcc編譯器(例如草莓perl)的MS Windows盒子,但是我們無法找到ImageMagick #二進制文件安裝在您的系統上........這很奇怪,因爲我確實直接安裝了二進制文件。 –