问题描述
我在公司环境中有一个Linux盒,其中通过需要身份验证的代理来访问Web访问。
在第一次运行cpan时,它会自动配置它通常执行的操作:
知道我有一个代理来浏览,并且已经阅读了文档和几页web about proxy and cpan I:
现在应该都好了,对吧?
所以我希望,
那么密码提示在哪里?
配置cpan通过公司代理通过身份验证访问互联网时缺少什么?
安装LWP。 cpan实用程序正在使用curl,我猜是因为它无法加载LWP。没有代理参数传递到curl,因此您需要在运行命令之前导出http_proxy = http:// host:port /。
或者,如果可以安装LWP使用您的分发的软件包管理器,那么它应该正确配置代理访问。
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 configures everything that it normally does:
Knowing that I have a proxy to navigate, and having read the docs and several pages on the web about proxy and cpan I:
All should be good now, right?So I wish,
So where's the password prompt?
What am I missing to configure cpan to access the internet through the corporate proxy with authentication?
Install LWP. The cpan utility is using curl, I guess because it couldn't load LWP. No proxy parameters are being passed to curl, so you need the export http_proxy=http://host:port/ before running the command.
Or, if you can install LWP using your distribution's package manager, then it should configure the proxy access correctly.
这篇关于使用CPAN与一个代理失败后o conf init / proxy /的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!