Strawberry Perl cpan跳过了代理身份验证提示

时间:2018-08-09 09:17:08

标签: perl cpan

我正在使用最新的草莓perl(This is perl 5, version 28, subversion 0 (v5.28.0) built for MSWin32-x86-multi-thread-64int)的新版本,并通过cpan(o conf init /proxy/)配置了代理。

如果我运行cpan,它也会识别出代理需要身份验证:

 Proxy authentication needed!
 (Note: to permanently configure username and password run
   o conf proxy_user your_username
   o conf proxy_pass your_password
     )
Username:
Warning: Term::ReadKey seems not to be available, your password will be echoed to the terminal!
Password:

但是cpan不会等待Username:Password:提示符下的输入-只是将鼠标悬停在整个文本上:

这里是完整的输出:for

D:\strawberryperl>cpan install XML::LibXML 


Loading internal logger. Log::Log4perl recommended for better logging
CPAN::SQLite not installed, trying to work without
Fetching with HTTP::Tiny:
http://cpan.strawberryperl.com/authors/01mailrc.txt.gz
Error downloading with HTTP::Tiny: Not a CODE reference at D:\strawberryperl\perl\lib/CPAN/HTTP/Client.pm line 112.


Proxy authentication needed!
 (Note: to permanently configure username and password run
   o conf proxy_user your_username
   o conf proxy_pass your_password
     )
Username:  
Warning: Term::ReadKey seems not to be available, your password will be echoed to the terminal!
Password:  


Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01mailrc.txt.gz.tmp14296'. Giving up on it.
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/01mailrc.txt.gz
Error downloading with HTTP::Tiny: Not a CODE reference at D:\strawberryperl\perl\lib/CPAN/HTTP/Client.pm line 112.


Proxy authentication needed!
 (Note: to permanently configure username and password run
   o conf proxy_user your_username
   o conf proxy_pass your_password
     )
Username:  
Warning: Term::ReadKey seems not to be available, your password will be echoed to the terminal!
Password:  


Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01mailrc.txt.gz.tmp14296'. Giving up on it.

Proxy authentication needed!
 (Note: to permanently configure username and password run
   o conf proxy_user your_username
   o conf proxy_pass your_password
     )
Username:  
Warning: Term::ReadKey seems not to be available, your password will be echoed to the terminal!
Password:  



Proxy authentication needed!
 (Note: to permanently configure username and password run
   o conf proxy_user your_username
   o conf proxy_pass your_password
     )
Username:  
Warning: Term::ReadKey seems not to be available, your password will be echoed to the terminal!
Password:  


Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01mailrc.txt.gz.tmp14296'. Giving up on it.

As a last resort we now switch to the external ftp command 'C:\Windows\system32\ftp.exe'
to get 'C:\strawberry\cpan\sources\authors\01mailrc.txt.gz.tmp14296'.

Doing so often leads to problems that are hard to diagnose.

If you're the victim of such problems, please consider unsetting the
ftp config variable with

    o conf ftp ""
    o conf commit

Fetching with HTTP::Tiny:
http://cpan.strawberryperl.com/authors/01mailrc.txt.gz
Error downloading with HTTP::Tiny: Not a CODE reference at D:\strawberryperl\perl\lib/CPAN/HTTP/Client.pm line 112.


Proxy authentication needed!
 (Note: to permanently configure username and password run
   o conf proxy_user your_username
   o conf proxy_pass your_password
     )
Username:  
Warning: Term::ReadKey seems not to be available, your password will be echoed to the terminal!
Password:  


Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01mailrc.txt.gz.tmp14296'. Giving up on it.
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/01mailrc.txt.gz
Error downloading with HTTP::Tiny: Not a CODE reference at D:\strawberryperl\perl\lib/CPAN/HTTP/Client.pm line 112.


Proxy authentication needed!
 (Note: to permanently configure username and password run
   o conf proxy_user your_username
   o conf proxy_pass your_password
     )
Username:  
Warning: Term::ReadKey seems not to be available, your password will be echoed to the terminal!
Password:  


Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01mailrc.txt.gz.tmp14296'. Giving up on it.

Proxy authentication needed!
 (Note: to permanently configure username and password run
   o conf proxy_user your_username
   o conf proxy_pass your_password
     )
Username:  
Warning: Term::ReadKey seems not to be available, your password will be echoed to the terminal!
Password:  



Proxy authentication needed!
 (Note: to permanently configure username and password run
   o conf proxy_user your_username
   o conf proxy_pass your_password
     )
Username:  
Warning: Term::ReadKey seems not to be available, your password will be echoed to the terminal!
Password:  


Warning: no success downloading 'C:\strawberry\cpan\sources\authors\01mailrc.txt.gz.tmp14296'. Giving up on it.

As a last resort we now switch to the external ftp command 'C:\Windows\system32\ftp.exe'
to get 'C:\strawberry\cpan\sources\authors\01mailrc.txt.gz.tmp14296'.

Doing so often leads to problems that are hard to diagnose.

If you're the victim of such problems, please consider unsetting the
ftp config variable with

    o conf ftp ""
    o conf commit

Please check, if the URLs I found in your configuration file
(http://cpan.strawberryperl.com/, http://www.cpan.org/) are valid. The
urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'

Could not fetch authors/01mailrc.txt.gz

0 个答案:

没有答案