apache的错误日志:
Can't locate Net/Telnet.pm in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at e:\proj\php\san2\SOURCE~1\WEBSER~1\system\SNMPMG~1.PL line 3.
Can't locate object method "new" via package "Net::Telnet" (perhaps you forgot to load "Net::Telnet"?) at e:\proj\php\san2\SOURCE~1\WEBSER~1\system\SNMPMG~1.PL line 12.
解决以上问题:
1.到search.cpan.org去下载一个Net::Telnet(http://search.cpan.org/CPAN/authors/id/J/JR/JROGERS/Net-Telnet-3.03.tar.gz),把解压后的telnet.pm放到C:\Perl\site\lib\Net\下。
2.然后再在命令行执行ppm install Net::Telnet 来安装.而不是单纯的拷贝.
如:
C:\Documents and Settings\EVAN>ppm install Net::Telnet
Installing package 'Net-Telnet'...
Bytes transferred: 48478
Installing C:\Perl\html\site\lib\Net\Telnet.html
Installing C:\Perl\site\lib\Net\Telnet.pm
Writing C:\Perl\site\lib\auto\Net\Telnet\.packlist
C:\Documents and Settings\EVAN>
perl 安装 Net::Telnet 模块
最新推荐文章于 2023-03-21 22:04:44 发布