免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7515 | 回复: 5
打印 上一主题 下一主题

求助 安装perl模块时遇到的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-09 01:11 |只看该作者 |倒序浏览
我在安装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:\>

论坛徽章:
7
巳蛇
日期:2014-04-10 08:54:57白羊座
日期:2014-04-22 20:06:262015年亚洲杯之沙特阿拉伯
日期:2015-02-10 14:18:532015年辞旧岁徽章
日期:2015-03-03 16:54:152015亚冠之吉达阿赫利
日期:2015-06-02 11:34:112015亚冠之武里南联
日期:2015-06-24 12:13:082015亚冠之阿尔纳斯尔
日期:2015-08-03 09:08:25
2 [报告]
发表于 2008-08-09 08:46 |只看该作者
先安装VC++

论坛徽章:
0
3 [报告]
发表于 2008-08-09 09:24 |只看该作者
我感觉只要下一个nmake.exe就可以了,放到path里,你到别人的vc的bin里拷个过来或者下个~

我下过一次,成功安装了一个模块

论坛徽章:
0
4 [报告]
发表于 2008-08-09 09:27 |只看该作者
谢谢,已经解决问题,就是下个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

论坛徽章:
0
5 [报告]
发表于 2008-08-10 09:00 |只看该作者
问题不断啊....................
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++也不行啊

论坛徽章:
7
巳蛇
日期:2013-11-28 09:22:59天秤座
日期:2014-10-25 15:40:452015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:53:172015亚冠之德黑兰石油
日期:2015-07-15 08:46:452015亚冠之平阳省
日期:2015-11-08 16:27:53白银圣斗士
日期:2015-11-14 09:58:12
6 [报告]
发表于 2018-09-21 11:16 |只看该作者
o conf mbuildpl_arg "--installdirs=site --BUILDENV=mingw"
o conf commit

把编译参数放进去就好了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP