Cannot use CPAN with proxy authentication. Getting keep_alive error

I cannot install any module in perl that would require proxy authentication. I configured perl with proxy credentials using cpan [2]> o conf init / proxy /

When you try to install a package, the error below appears. Please, help.

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

+4
source share
2 answers

You must set proxy settings from cpan

 perl -MCPAN -e shell cpan[2]> o conf init /proxy/ Your ftp_proxy? [abcd] abcd:port Your http_proxy? [abcd] abcd:port Your no_proxy? [] abcd:port cpan[3]> o conf commit 
+1
source

This error may be caused if your saved password is incorrect.

+1
source

Source: https://habr.com/ru/post/1446893/


All Articles