gpt4 book ai didi

linux - 从 CPAN 安装 perl 模块时获取 "Proxy authentication Required"消息

转载 作者:太空宇宙 更新时间:2023-11-04 11:12:19 24 4
gpt4 key购买 nike

我正在尝试从 CPAN 安装 Perl 模块 (JSON),但出现以下错误。

root@catspc:/etc/apt# cpan

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

cpan[1]> install JSON
Going to read '/root/.cpan/Metadata'
Database was generated on Sat, 07 Dec 2013 22:53:04 GMT
Fetching with LWP:
http://mirror.sov.uk.goscomb.net/CPAN/authors/01mailrc.txt.gz

Proxy authentication needed!
(Note: to permanently configure username and password run
o conf proxy_user your_username
o conf proxy_pass your_password
)
Username: vc06
Password:

Catching error: "Undefined subroutine &CPAN::HTTP::Credentials::_clear_non_proxy_credentials called at /usr/share/perl/5.14/CPAN/HTTP/Credentials.pm line 10, <STDIN> line 2.\cJ" at /usr/share/perl/5.14/CPAN.pm line 391
CPAN::shell() called at /usr/share/perl/5.14/App/Cpan.pm line 295
App::Cpan::_process_options('App::Cpan') called at /usr/share/perl/5.14/App/Cpan.pm line 364
App::Cpan::run('App::Cpan') called at /usr/bin/cpan line 11
Fetching with LWP:
http://mirror.sov.uk.goscomb.net/CPAN/authors/01mailrc.txt.gz
Lockfile removed.
Undefined subroutine &CPAN::HTTP::Credentials::_clear_non_proxy_credentials called at /usr/share/perl/5.14/CPAN/HTTP/Credentials.pm line 10, <STDIN> line 2.
root@catspc:/etc/apt#

有人可以帮我解决这个问题吗?这里出了什么问题?

等待您宝贵的回复。

最佳答案

很可能是您的 cpan 配置有偏差。

您不使用 cpanm 有什么原因吗? ( https://metacpan.org/release/App-cpanminus )

几年前我从 cpan 切换到 cpanm,现在还没有后悔。

DESCRIPTION

cpanminus is a script to get, unpack, build and install modules from CPAN and does nothing else.

It's dependency free (can bootstrap itself), requires zero configuration, and stands alone. When running, it requires only 10MB of RAM.

关于linux - 从 CPAN 安装 perl 模块时获取 "Proxy authentication Required"消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22534444/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com