in reply to I can not install perl modules via LWP

Hi i19870503, welcome to the Monastery!

Did you specify the username and password? You can use the commands shown in the output (o conf proxy_...) to stop the prompt appearing every time you need to download something.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: I can not install perl modules via LWP
by i19870503 (Initiate) on Nov 05, 2014 at 13:55 UTC
    Hi choroba, thanks for reply! Here is the o conf /proxy/ results.
    cpan[5]> o conf /proxy/ $CPAN::Config options from /home/zluna/.cpan/CPAN/MyConfig.pm: ftp_proxy [] http_proxy [] no_proxy [localhost,127.0.0.0/8,::1] proxy_pass undef proxy_user [] cpan[7]> i Fetching with LWP: http://mirrors.163.com/cpan/authors/01mailrc.txt.gz LWP failed with code[500] message[read timeout] Proxy authentication needed! (Note: to permanently configure username and password run o conf proxy_user your_username o conf proxy_pass your_password )
    In my opinin, I did not set any proxy and I also don't want to use proxy for download modules. But still can not install the modules, however, I can download the modules by "wget" and then put them to the folders.
      There seems to be a proxy set on your system. wget might be able to access it thanks to environment variables - try
      echo $http_proxy $HTTP_PROXY

      in your shell. You should get the output as

      http://username:password@proxy-url
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
        It works, Thanks very much.