我需要運行CPAN低谷代理,但是當我嘗試配置我得到的錯誤和無法進入到CPAN首次CPAN首次發射(代理服務器配置)
[email protected]:~# cpan
CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.
Would you like to configure as much as possible automatically? [yes] no
在代理服務器設置:
If you're accessing the net via proxies, you can specify them in the
CPAN configuration or via environment variables. The variable in
the $CPAN::Config takes precedence.
<ftp_proxy>
Your ftp_proxy? [] http://username:[email protected]:Port/ <---- is ok the information?
<http_proxy>
Your http_proxy? [] http://username:[email protected]:Port/ <---- is ok the information?
<no_proxy>
Your no_proxy? []
If your proxy is an authenticating proxy, you can store your username
permanently. If you do not want that, just press ENTER. You will then
be asked for your username in every future session.
Your proxy user id? [] <---- username is needed again?
Your password for the authenticating proxy can also be stored
permanently on disk. If this violates your security policy, just press
ENTER. You will then be asked for the password in every future
session.
Your proxy password?
在此之前,我明白了這一點。
Fetching with HTTP::Tiny:
http://www.perl.org/CPAN/MIRRORED.BY.gz
Error downloading with HTTP::Tiny: Not a CODE reference at /usr/share/perl/5.18/CPAN/HTTP/Client.pm line 112, <STDIN> line 65.
使用Ubuntu服務器14.04 LTS和Perl 5.18.2
感謝
......你是否試過將代理配置指定爲URL,並分別給予用戶/密碼? – Sobrique
贊 您的ftp_proxy? [] http:// ipaddress:port/ 您的http_proxy? [] http:// ipaddress:port/ 和用戶和通過之前?是的,我得到相同的... –
你不能像這樣使用CPAN安裝:'export http_proxy = http://httpproxy.test.com:8080 /;導出https_proxy = $ http_proxy' – AbhiNickz