我无法在perl中安装任何需要代理身份验证的模块。 我使用cpan [2]>配置了perl和代理凭证。 o conf init / proxy /
当我尝试安装任何软件包时出现以下错误。 请帮忙。
cpan[4]> i 'XML::RAI'
←[32mGoing to read 'C:\Perl\cpan\Metadata'←[0m
←[32m Database was generated on Wed, 26 Sep 2012 10:43:03 GMT←[0m
←[32mFetching with LWP:
http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz←[0m
The keep_alive option must be enabled for NTLM authentication to work. NTLM authentication aborted.
Catching error: "Undefined subroutine &CPAN::HTTP::Credentials::_clear_non_proxy_credentials called at C:\\Perl\\lib/CPAN/HTTP/Cred
ne 391
CPAN::shell() called at C:/Perl/lib/App/Cpan.pm line 295
App::Cpan::_process_options('App::Cpan') called at C:/Perl/lib/App/Cpan.pm line 364
App::Cpan::run('App::Cpan') called at C:\Perl\bin/cpan.bat line 24
←[32m←[0m
Uma Mahesh
答案 0 :(得分:2)
您必须从cpan
设置代理设置perl -MCPAN -e shell
cpan[2]> o conf init /proxy/
Your ftp_proxy? [a.b.c.d] a.b.c.d:port
Your http_proxy? [a.b.c.d] a.b.c.d:port
Your no_proxy? [] a.b.c.d:port
cpan[3]> o conf commit
答案 1 :(得分:1)
如果您存储的密码不正确,可以触发此错误。