Using CPAN with a proxy failing after o conf init /proxy/

后端 未结 4 490
灰色年华
灰色年华 2020-12-14 19:14

I have a Linux box in a corporate environment in which web access is gated through a proxy which requires authentication.

During a first run of cpan it auto configu

4条回答
  •  一个人的身影
    2020-12-14 19:52

    [root@localhost ~] cpan
    

    Terminal does not support AddHistory.

    cpan shell -- CPAN exploration and modules installation (v1.9800) Enter 'h' for help.

    list my download url

    cpan[1]> o conf urllist 
    
    
    urllist
        0 [http://mirror.waia.asn.au/pub/cpan/]
        1 [ftp://mirrors.coopvgg.com.ar/CPAN/]
        2 [http://httpupdate3.cpanel.net/CPAN/]
    

    Type 'o conf' to view all configuration items

    add CPAN mirror list

    cpan[2]> o conf urllist push http://httpupdate3.cpanel.net/CPAN/
    

    Please use 'o conf commit' to make the config permanent!

    commit

    cpan[3]> o conf commit
    

    commit: wrote '/root/.cpan/CPAN/MyConfig.pm'

    cpan[4]>

    now you can install perl module again like : cpan -i Text::Template

提交回复
热议问题