NET :: SSH ::期望配置可以在Windows上运行 [英] NET::SSH::Expect configurations to work over windows
问题描述
机器详细信息:Windows7(64位)。
我将perl集成到eclipse中,并使用Net :: SSH :: Except模块进行脚本编写,但是由于找不到@INC中的Net / SSH / Expect.pm而出现错误(您可能需要安装Net :: SSH :: Expect
模块)(@INC包含:C:/ Perl64 / site / lib / MSWin32-x64-multi-thread C:/ Perl64 / site / lib
C:/ Perl64 / lib。)
因此,我尝试使用<$ c命令安装IO :: Tty以获取Expect依赖项$ c> cpan> notest安装IO :: Tty 。
i收到以下错误消息:
并且模块未安装,甚至 NET :: SSH :: Expect
也未安装。 / p>
cpan> notest install IO :: Tty
读取'C:\Perl64\cpan\Metadata'
数据库于2017年12月11日星期一生成04:41:02 GMT
使用LWP获取:
http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz
阅读'C:\Perl64\cpan\sources\authors\01mailrc.txt。 gz'
....................................... .....................完成
使用LWP获取:
http://ppm.activestate.com/CPAN/ modules / 02packages.details.txt.gz
阅读'C:\Perl64\cpan\sources\modules\02packages.details.txt.gz'
数据库于12月2日生成2017年12月04:29:02 GMT
.............
**新的CPAN.pm版本(v2.16)可用。
[当前正在运行的版本是v2.1101]
您可能想尝试
安装CPAN
重新加载cpan
来升级CPAN.pm并运行新版本而无需离开
当前会话。**
.................................... ................................... DONE
使用LWP获取:
http: //ppm.activestate.com/CPAN/modules/03modlist.data.gz
阅读'C:\Perl64\cpan\sources\modules\03modlist.data.gz'
完成
编写C:\Perl64\cpan\元数据
运行模块'IO :: Tty'的安装
C:\Perl64\cpan\sources\authors的校验和\id\T\TODDRTOIO\Tty-1.12.tar.gz
ok
扫描缓存C:\Perl64 / cpan / build以获取大小
。 ................................................... ............完成
IO-Tty-1.12 /
IO-Tty-1.12 / ChangeLog
IO-Tty-1.12 / Makefile。 PL
IO-Tty-1.12 /清单
IO-Tty-1.12 / META.json
IO-Tty-1.12 / META.yml
IO-Tty-1.12 / Pty。 pm
IO-Tty-1.12 /自述文件
IO-Tty-1.12 / t /
IO-Tty-1 .12 / try
IO-Tty-1.12 / Tty.pm
IO-Tty-1.12 / Tty.xs
IO-Tty-1.12 / t / test.t
配置带Makefile.PL
的T / TO / TODDR / IO-Tty-1.12.tar.gz此模块需要POSIX兼容系统才能工作。如果
需要Windows操作系统上的Makefile.PL第6行不支持的模块,请尝试cygwin。
警告:命令[C:\Perl64\bin\perl.exe Makefile.PL
INSTALLDIRS = site]
TODDR / IO-Tty-1.12.tar.gz
C:\Perl64\bin\perl.exe Makefile.PL INSTALLDIRS = site-不好
在此命令期间失败:
TODDR / IO-Tty-1.12.tar.gz:writemakefile NO
'C:\Perl64\bin\
perl.exe Makefile。 PL INSTALLDIRS =站点的返回状态65280
我尝试使用以下命令$ b安装IO :: Tty $ b cpanm --install IO :: Tty
cpanm --verbose IO :: Tty
cpanm --force IO :: Tty
都失败了,这可能是由于perl的版本较低。
从cmd升级cpan并通过cmd升级perl的命令是什么?
已解决!
-
Expect的新版本与Windows兼容,但是需要与cygwin一起安装。 >
-
在eclipse中,将解释器设置为cygwin(Windows->首选项-> EPIC Perl->解释器)。
并执行脚本:)
Machine details : Windows7 , 64-bits.
I integrated perl in eclipse and used Net::SSH::Except module for scripting, but am getting an error as Can't locate Net/SSH/Expect.pm in @INC (you may need to install the Net::SSH::Expect
module) (@INC contains: C:/Perl64/site/lib/MSWin32-x64-multi-thread C:/Perl64/site/lib
C:/Perl64/lib .)
Therefore, Am trying to install IO::Tty for Expect dependency, using command cpan>notest install IO::Tty
.
i am getting the following error message :
and the module is not being installed, even the NET::SSH::Expect
not getting installed.
cpan> notest install IO::Tty
Reading 'C:\Perl64\cpan\Metadata'
Database was generated on Mon, 11 Dec 2017 04:41:02 GMT
Fetching with LWP:
http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz
Reading 'C:\Perl64\cpan\sources\authors\01mailrc.txt.gz'
.............................................................DONE
Fetching with LWP:
http://ppm.activestate.com/CPAN/modules/02packages.details.txt.gz
Reading 'C:\Perl64\cpan\sources\modules\02packages.details.txt.gz'
Database was generated on Tue, 12 Dec 2017 04:29:02 GMT
.............
**New CPAN.pm version (v2.16) available.
[Currently running version is v2.1101]
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
Reading 'C:\Perl64\cpan\sources\modules\03modlist.data.gz'
DONE
Writing C:\Perl64\cpan\Metadata
Running install for module 'IO::Tty'
Checksum for C:\Perl64\cpan\sources\authors\id\T\TO\TODDR\IO-Tty-1.12.tar.gz
ok
Scanning cache C:\Perl64/cpan/build for sizes
...............................................................DONE
IO-Tty-1.12/
IO-Tty-1.12/ChangeLog
IO-Tty-1.12/Makefile.PL
IO-Tty-1.12/MANIFEST
IO-Tty-1.12/META.json
IO-Tty-1.12/META.yml
IO-Tty-1.12/Pty.pm
IO-Tty-1.12/README
IO-Tty-1.12/t/
IO-Tty-1.12/try
IO-Tty-1.12/Tty.pm
IO-Tty-1.12/Tty.xs
IO-Tty-1.12/t/test.t
Configuring T/TO/TODDR/IO-Tty-1.12.tar.gz with Makefile.PL
This module requires a POSIX compliant system to work. Try cygwin if you
need this module on windows OS unsupported at Makefile.PL line 6.
Warning: No success on command[C:\Perl64\bin\perl.exe Makefile.PL
INSTALLDIRS=site]
TODDR/IO-Tty-1.12.tar.gz
C:\Perl64\bin\perl.exe Makefile.PL INSTALLDIRS=site -- NOT OK
Failed during this command:
TODDR/IO-Tty-1.12.tar.gz : writemakefile NO
'C:\Perl64\bin\
perl.exe Makefile.PL INSTALLDIRS=site' returned status 65280
i have tried installed IO::Tty with following command
cpanm --install IO::Tty
cpanm --verbose IO::Tty
cpanm --force IO::Tty
all failing , this may be due to the lower version of the perl.
what is the command to upgrade cpan from cmd and also perl through cmd?
Solved!
the new version of Expect is made compatible with the windows, but it need to be installed with cygwin ..
In eclipse , make interpreter as cygwin (windows -> preference -> EPIC Perl -> interpreter).
and execute the script:)
这篇关于NET :: SSH ::期望配置可以在Windows上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!