gpt4 book ai didi

perl - 无法将 CPAN 与代理身份验证结合使用。出现 keep_alive 错误

转载 作者:行者123 更新时间:2023-12-01 16:07:13 28 4
gpt4 key购买 nike

我无法在 perl 中安装任何需要代理身份验证的模块。我使用 cpan[2]> o conf init/proxy/

使用代理凭据配置了 perl

当我尝试安装任何软件包时,出现以下错误。请帮忙。

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

乌玛·马赫什

最佳答案

您必须从 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

关于perl - 无法将 CPAN 与代理身份验证结合使用。出现 keep_alive 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13450006/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com