我正在使用 CPANM 与需要用户名和密码的代理进行交互。我在运行“o conf init /proxy/ under cpan”时指定了设置。我的看法是在 unix 环境中用于指定代理的变量在整个环境中并不是标准的。将环境变量设置为正确的值后,其他 unix 实用程序通过代理正常工作。
我的问题如下:
CPANM 如何与任何环境变量交互?他们会是什么?
我们可以查看代码的相关区域以帮助消除歧义,我在想 CPANM 内部有一个 LWP 接口吗? https://github.com/miyagawa/cpanminus/blob/devel/App-cpanminus/cpanm
####:/mnt/c/Projects$ sudo cpanm install Catalyst::Helper -v
cpanm (App::cpanminus) 1.7040 on perl 5.022001 built for x86_64-linux-gnu-thread-multi
Work directory is /home/####/.cpanm/work/1543605706.124
You have make /usr/bin/make
You have LWP 6.36
You have /bin/tar: tar (GNU tar) 1.28
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
Searching install () on cpanmetadb ...
########:/mnt/c/Projects$ env | grep HTTP_proxy
HTTP_proxy=http://####:###