CPAN命令行错误 - 需要407 Proxy Authentic ation

时间:2017-08-18 04:38:00

标签: perl cpan

我支持公司代理,但在配置代理后,我可以使用浏览器下载所有文件。但是,即使我在配置文件中设置了用户名和密码,CPAN命令行也会抛出一些身份验证错误。

PFB cpan错误:

  

下载ActiveState Package Repository packlist ...失败407   代理正宗       需要(Forefront TMG需要授权才能完成请求       拒绝Web代理筛选器的cess。 )       ppm安装失败:无法找到提供MinGW的任何软件包

PFB我添加配置的MyConfig文件:

$CPAN::Config = {
  'auto_commit' => q[0],
  'build_cache' => q[10],
  'build_dir' => q[C:\\Perl64/cpan/build],
  'build_requires_install_policy' => q[yes],
  'cache_metadata' => q[1],
  'check_sigs' => q[0],
  'colorize_output' => q[1],
  'colorize_print' => q[green],
  'colorize_warn' => q[red],
  'commandnumber_in_prompt' => q[1],
  'connect_to_internet_ok' => q[1],
  'cpan_home' => q[C:\\Perl64/cpan],
  'ftp' => q[],
  'ftp_passive' => q[1],
  'ftp_proxy' => q[http://x.x.x.x:80],
  'getcwd' => q[cwd],
  'gpg' => q[],
  'gzip' => q[],
  'halt_on_failure' => q[0],
  'histfile' => q[C:\\Perl64/cpan/histfile],
  'histsize' => q[100],
  'http_proxy' => q[http://x.x.x.x:80],
  'inactivity_timeout' => q[0],
  'index_expire' => q[1],
  'inhibit_startup_message' => q[0],
  'keep_source_where' => q[C:\\Perl64/cpan/sources],
  'load_module_verbosity' => q[none],
  'lynx' => q[],
  'make' => q[],
  'make_arg' => q[],
  'make_install_arg' => q[],
  'make_install_make_command' => q[],
  'makepl_arg' => q[INSTALLDIRS=site],
  'mbuild_arg' => q[],
  'mbuild_install_arg' => q[],
  'mbuildpl_arg' => q[--installdirs=site],
  'no_proxy' => q[localhost,127.0.0.1],
  'pager' => q[more],
  'perl5lib_verbosity' => q[none],
  'prefer_external_tar' => q[0],
  'prefer_installer' => q[MB],
  'prerequisites_policy' => q[follow],
  'proxy_pass' => q[password],
  'proxy_user' => q[username],
  'recommends_policy' => q[1],
  'scan_cache' => q[atstart],
  'shell' => q[C:\\Windows\\system32\\cmd.exe],
  'show_upload_date' => q[0],
  'suggests_policy' => q[0],
  'tar' => q[],
  'tar_verbosity' => q[none],
  'term_is_latin' => q[1],
  'term_ornaments' => q[1],
  'trust_test_report_history' => q[0],
  'unzip' => q[],
  'urllist' => [q[http://ppm.activestate.com/CPAN], q[http://cpan.perl.org]],
  'use_prompt_default' => q[0],
  'use_sqlite' => q[0],
  'version_timeout' => q[15],
  'wget' => q[],
  'yaml_load_code' => q[0],
  'yaml_module' => q[YAML::XS],
};
1;
__END__

感谢您的帮助。

0 个答案:

没有答案