求助 安装perl模块时遇到的问题

求助 安装perl模块时遇到的问题

我在安装Win32::IEAutomation模块时遇到错误信息如下,请各位帮忙看看,如何解决?

C:\>perl -MCPAN -e "install Win32::IEAutomation"
CPAN: Storable loaded ok (v2.16)
CPAN: LWP::UserAgent loaded ok (v2.036)
CPAN: Time::HiRes loaded ok (v1.9707)
Fetching with LWP:
  http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz
Going to read C:\Perl\cpan\sources\authors\01mailrc.txt.gz
............................................................................DONE

Fetching with LWP:
  http://ppm.activestate.com/CPAN/modules/02packages.details.txt.gz
Going to read C:\Perl\cpan\sources\modules\02packages.details.txt.gz
  Database was generated on Thu, 07 Aug 2008 10:02:50 GMT
..............
  New CPAN.pm version (v1.9205) available.
  [Currently running version is v1.9102]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.


..............................................................DONE
Fetching with LWP:
  http://ppm.activestate.com/CPAN/modules/03modlist.data.gz
Going to read C:\Perl\cpan\sources\modules\03modlist.data.gz
............................................................................DONE

Going to write C:\Perl\cpan\Metadata
Running install for module 'Win32::IEAutomation'
Running make for P/PR/PRASHANT/Win32-IEAutomation-0.5.tar.gz
Fetching with LWP:
  http://ppm.activestate.com/CPAN/ ... n32-IEAutomation-0.
5.tar.gz

  CPAN: checksum security checks disabled because Digest::SHA not installed.
  Please consider installing the Digest::SHA module.

CPAN: Archive::Tar loaded ok (v1.3201)
Win32-IEAutomation-0.5/
Win32-IEAutomation-0.5/Makefile.PL
Win32-IEAutomation-0.5/t/
Win32-IEAutomation-0.5/t/Win32-IEAutomation.t
Win32-IEAutomation-0.5/lib/
Win32-IEAutomation-0.5/lib/Win32/
Win32-IEAutomation-0.5/lib/Win32/IEAutomation/
Win32-IEAutomation-0.5/lib/Win32/IEAutomation/AutoItX3.dll
Win32-IEAutomation-0.5/lib/Win32/IEAutomation/WinClicker.pm
Win32-IEAutomation-0.5/lib/Win32/IEAutomation/Table.pm
Win32-IEAutomation-0.5/lib/Win32/IEAutomation/Element.pm
Win32-IEAutomation-0.5/lib/Win32/IEAutomation.pm
Win32-IEAutomation-0.5/README
Win32-IEAutomation-0.5/MANIFEST
Win32-IEAutomation-0.5/Changes
Win32-IEAutomation-0.5/META.yml
CPAN: File::Temp loaded ok (v0.1

  CPAN.pm: Going to build P/PR/PRASHANT/Win32-IEAutomation-0.5.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Win32::IEAutomation
Could not read 'C:\Perl\cpan\build\Win32-IEAutomation-0.5-AyRLNK\META.yml'. Fall
ing back to other methods to determine prerequisites
'nmake' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
  PRASHANT/Win32-IEAutomation-0.5.tar.gz
  nmake -- NOT OK
Warning (usually harmless): 'YAML' not installed, will not store persistent stat
e
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible

C:\>
先安装VC++
我感觉只要下一个nmake.exe就可以了,放到path里,你到别人的vc的bin里拷个过来或者下个~

我下过一次,成功安装了一个模块
谢谢,已经解决问题,就是下个nmake就可以了,不过新问题又出现了,安装后出现如下信息,最后一行提示好像还有问题:

C:\>perl -MCPAN -e "install Win32::IEAutomation"
CPAN: Storable loaded ok (v2.16)
Going to read C:\Perl\cpan\Metadata
  Database was generated on Thu, 07 Aug 2008 10:02:50 GMT
Running install for module 'Win32::IEAutomation'
Running make for P/PR/PRASHANT/Win32-IEAutomation-0.5.tar.gz

  CPAN: checksum security checks disabled because Digest::SHA not installed.
  Please consider installing the Digest::SHA module.

CPAN: Time::HiRes loaded ok (v1.9707)
CPAN: Compress::Zlib loaded ok (v1.4201)
CPAN: Archive::Tar loaded ok (v1.3201)
Win32-IEAutomation-0.5/
Win32-IEAutomation-0.5/Makefile.PL
Win32-IEAutomation-0.5/t/
Win32-IEAutomation-0.5/t/Win32-IEAutomation.t
Win32-IEAutomation-0.5/lib/
Win32-IEAutomation-0.5/lib/Win32/
Win32-IEAutomation-0.5/lib/Win32/IEAutomation/
Win32-IEAutomation-0.5/lib/Win32/IEAutomation/AutoItX3.dll
Win32-IEAutomation-0.5/lib/Win32/IEAutomation/WinClicker.pm
Win32-IEAutomation-0.5/lib/Win32/IEAutomation/Table.pm
Win32-IEAutomation-0.5/lib/Win32/IEAutomation/Element.pm
Win32-IEAutomation-0.5/lib/Win32/IEAutomation.pm
Win32-IEAutomation-0.5/README
Win32-IEAutomation-0.5/MANIFEST
Win32-IEAutomation-0.5/Changes
Win32-IEAutomation-0.5/META.yml
CPAN: File::Temp loaded ok (v0.1

  CPAN.pm: Going to build P/PR/PRASHANT/Win32-IEAutomation-0.5.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Win32::IEAutomation
Could not read 'C:\Perl\cpan\build\Win32-IEAutomation-0.5-dUJwpQ\META.yml'. Fall
ing back to other methods to determine prerequisites

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.

cp lib/Win32/IEAutomation/WinClicker.pm blib\lib\Win32\IEAutomation\WinClicker.p
m
cp lib/Win32/IEAutomation/AutoItX3.dll blib\lib\Win32\IEAutomation\AutoItX3.dll
cp lib/Win32/IEAutomation/Element.pm blib\lib\Win32\IEAutomation\Element.pm
cp lib/Win32/IEAutomation.pm blib\lib\Win32\IEAutomation.pm
cp lib/Win32/IEAutomation/Table.pm blib\lib\Win32\IEAutomation\Table.pm
  PRASHANT/Win32-IEAutomation-0.5.tar.gz
  nmake -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent stat
e
Running make test

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.

        C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'bl
ib\lib', 'blib\arch')" t/*.t
t/Win32-IEAutomation....ok
All tests successful.
Files=1, Tests=1,  1 wallclock secs ( 0.00 cusr +  0.00 csys =  0.00 CPU)
  PRASHANT/Win32-IEAutomation-0.5.tar.gz
  nmake test -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent stat
e
Running make install

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation.  All rights reserved.

Installing C:\Perl\html\site\lib\Win32\IEAutomation.html
Installing C:\Perl\site\lib\Win32\IEAutomation.pm
Installing C:\Perl\site\lib\Win32\IEAutomation\AutoItX3.dll
Installing C:\Perl\site\lib\Win32\IEAutomation\Element.pm
Installing C:\Perl\site\lib\Win32\IEAutomation\Table.pm
Installing C:\Perl\site\lib\Win32\IEAutomation\WinClicker.pm
Appending installation info to C:\Perl\lib/perllocal.pod
  PRASHANT/Win32-IEAutomation-0.5.tar.gz
  nmake install  -- OK
Warning (usually harmless): 'YAML' not installed, will not store persistent stat
e
问题不断啊....................
C:\>perl -MCPAN -e "install Win32::GUI"

.......................................


CPAN: File::Temp loaded ok (v0.1

  CPAN.pm: Going to build R/RO/ROBERTMAY/Win32-GUI/Win32-GUI-1.06.tar.gz



BUILDENV=vc  Used build environment is: MSWin32 and Visual C++


Makefile.PL was unable to find compiler 'cl' on your path.
To force a build call this script with the additional parameter 'BUILDENV':

  perl Makefile.PL BUILDENV=xxxx

where xxxx is one of:
vc      (MSWin32 and Visual C++)
mingw   (MSWin32 and MinGW)
cygwin  (Cygwin)
Warning: No success on command[C:\Perl\bin\perl.exe Makefile.PL]
Warning (usually harmless): 'YAML' not installed, will not store persistent stat
e
  ROBERTMAY/Win32-GUI/Win32-GUI-1.06.tar.gz
  C:\Perl\bin\perl.exe Makefile.PL -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Could not read 'C:\Perl\cpan\build\Win32-GUI-1.06-YYwY1M\META.yml'. Falling back
to other methods to determine prerequisites

C:\>

安装了C++也不行啊