本文介绍了如何正确安装Win32 :: GuiTest?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows XP和Windows XP中使用 Win32 :: GuiTest perl版本5.8.6.

I am trying to use Win32::GuiTest and with Windows XP and perl version 5.8.6.

我遇到以下错误:


Can't locate loadable object for module Win32::GuiTest in @INC (@INC contains:
C:/Perl/lib C:/Perl/site/lib .) at E:\a\simply.pl line 259
  Compilation failed in require at E:\a\simply.pl line 259.
  BEGIN failed--compilation aborted at E:\a\simply.pl line 259

我尝试按照 Win32-GuiTest-1.3 的说明进行操作.我尝试安装:

I tried following the instructions for Win32-GuiTest-1.3. I tried to install:

我创建了C:\TEMP,然后下载了zip文件并提取了内容并放入C:\TEMP中并给出了命令

I created C:\TEMP and I downloaded the zip file and extracted the contents and placed in C:\TEMP and gave the command

C:\TEMP>ppm
ppm> install C:\temp\win32-guitest.ppd

显示错误信息...


Error: no suitable installation target found for package Win32-GuiTest.

如果我使用软件包Win32-GuiTest-1.56,则提示错误

If I use the package Win32-GuiTest-1.56, it is giving the error


Error: Package 'win32-guitest' not found. Please 'search' for it first.

如果我使用命令


C:\temp>ppm
ppm> install Win32::GuiTest

我得到的错误是...

i get the error as...


Error: No valid repositories:
Error: 501 Protocol scheme '' is not supported
Error: 501 Protocol scheme '' is not supported

我从以下位置下载 http://search.cpan.org/~erngui/Win32-GuiTest-1.3/GuiTest.pm (对于软件包Win32-GuiTest-1.3 http://search.cpan.org/dist/Win32-GuiTest/lib/Win32/GuiTest.pm (对于软件包Win32-GuiTest-1.56

i downloaded fromhttp://search.cpan.org/~erngui/Win32-GuiTest-1.3/GuiTest.pm for package Win32-GuiTest-1.3andhttp://search.cpan.org/dist/Win32-GuiTest/lib/Win32/GuiTest.pm for package Win32-GuiTest-1.56

推荐答案

更新:既然您获得了Error: No valid repositories,显然您已经以某种方式使您的ppm配置感到厌烦. 添加一些存储库.

Update: Given that you get Error: No valid repositories, clearly you have somehow borked your ppm configuration. Add some repositories.

使用ppm安装模块:

ppm install Win32::GuiTest

C:\Home> ppm install Win32::GuiTest
Downloading ActiveState Package Repository packlist...done
Updating ActiveState Package Repository database...done
Downloading bribes packlist...done
Updating bribes database...done
Downloading trouchelle packlist...done
Updating trouchelle database...done
Downloading uwinnipeg packlist...not modified
Downloading wxperl packlist...done
Updating wxperl database...done
Downloading Win32-GuiTest-1.54...done
Unpacking Win32-GuiTest-1.54...done
Generating HTML for Win32-GuiTest-1.54...done
Updating files in site area...done
  15 files installed

如果要下载最新和最大的版本:

If you want to download the latest and the greatest:


C:\Temp> wget http://search.cpan.org/CPAN/authors/id/K/KA/KARASIK/Win32-GuiTest-1.56.tar.gz
C:\Temp> tar -xzvf Win32-GuiTest-1.56.tar.gz
C:\Temp> cd Win32-GuiTest-1.56
C:\Temp\Win32-GuiTest-1.56> perl Makefile.PL
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Checking if your kit is complete...
Looks good
Writing Makefile for Win32::GuiTest
C:\Temp\Win32-GuiTest-1.56> dmake
C:\Temp\Win32-GuiTest-1.56> dmake test
C:\Temp\Win32-GuiTest-1.56> dmake install

您需要安装 mingw 才能正常工作.

You need to install mingw for this to work.

这篇关于如何正确安装Win32 :: GuiTest?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 16:08
查看更多