Perl PPM 错误“失败 500 无法连接到 ppm4.activestate.com:8080(连接:超时)”

发布于 2024-10-10 19:17:57 字数 68 浏览 11 评论 0原文

当我尝试连接 PPM 时,它显示此错误,我已验证防火墙,但它尚未激活。我什至无法从 activestate 下载单个模块。

when I try to connect PPM it shows this error, i have verified firewall also it has not activated. I can't able to download even a single module from activestate.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

走野 2024-10-17 19:17:57

如果您使用代理,可能是您没有设置代理环境变量。

 set http_proxy=http://myproxyserver.mydomain.com:5050

请参阅他们的 PPM 文档

If you are using a proxy, it could be that you have not set the proxy environment variable.

 set http_proxy=http://myproxyserver.mydomain.com:5050

See their PPM Documenation

浮华 2024-10-17 19:17:57

因为ActiveState新主机不支持旧的SSL协议。
要解决这个问题,可以修改:(

\Perl\lib\ActivePerl\PPM\Web.pm

或者在\Perl64\lib....)

find:

$ua = ActivePerl::PPM::Web::UA->new( ... );

里面添加以下两个选项:

ssl_opts => { verify_hostname => 0 },
protocols_allowed => ['http','https'],

Because ActiveState new host does not support old SSL protocols.
To fix this problem, you can modify:

\Perl\lib\ActivePerl\PPM\Web.pm

(or in \Perl64\lib....)

find:

$ua = ActivePerl::PPM::Web::UA->new( ... );

add the following two options inside:

ssl_opts => { verify_hostname => 0 },
protocols_allowed => ['http','https'],
浅唱々樱花落 2024-10-17 19:17:57

安装 Fiddler Web 调试器(www.fiddler2.com),启动它,启动 Web 浏览器(供 Fiddle 检测设置) ),然后重新启动 PPM。

Fiddler 将作为代理并正确解析请求。我什至不需要添加 ActiveState 推荐的“http_proxy”环境设置,但您可能需要,因此从命令提示符键入:set http_proxy=http://127.0.0.1:8888 然后从同一命令提示符处键入 PPM 以启动 PPM

Install Fiddler Web Debugger (www.fiddler2.com), launch it, start a web browser (for Fiddle to detect settings), then relaunch PPM.

Fiddler will work as the proxy and resolve the requests properly. I didn't even need to add the "http_proxy" environment setting that is recommended by ActiveState, but you may need to, so from a command prompt type: set http_proxy=http://127.0.0.1:8888 then from this same command prompt type PPM to launch the PPM

凹づ凸ル 2024-10-17 19:17:57

我相信旧版本的 ActiveState Perl ie <= 5.x 不受支持,因为 TLS < 1.2(明显老化除外)。

作为解决方法,人们可以手动搜索每个模块的链接,然后在现代 Web 浏览器中下载它:

C:\TEMP>ppm search Time::Local
1: Time-Local
   Efficiently compute time from local and GMT time
   Version: 1.25
   Released: 2016-11-17
   Author: Dave Rolsky <[email protected]>
   Provide: Time::Local version 1.25
   Require: Carp
   Require: Exporter
   Require: constant
   Require: parent
   Require: strict
   Repo: ActiveState Package Repository
   Link: http://ppm4.activestate.com/MSWin32-x64/5.26/2603/D/DR/DROLSKY/Time-Local-1.25.ppmx
   CPAN: http://search.cpan.org/dist/Time-Local-1.25/
   Installed: 1.25 (perl)

使用现代浏览器下载链接后声明的 *.ppmx 包,即 http://ppm4.activestate.com/MSWin32-x64/5.26 /2603/D/DR/DROLSKY/Time-Local-1.25.ppmx

然后使用下载的文件执行安装:

C:\TEMP>ppm install Time-Local-1.25.ppmx
Unpacking Time-Local-1.25...done
Generating HTML for Time-Local-1.25...done
Updating files in site area...done
   2 files installed

I believe legacy versions of ActiveState Perl i.e. <= 5.x are not supported because of TLS < 1.2 (apart from the obvious aging).

As workaround one could do a manual search for the link to each of the modules instead and download it in a modern web browser:

C:\TEMP>ppm search Time::Local
1: Time-Local
   Efficiently compute time from local and GMT time
   Version: 1.25
   Released: 2016-11-17
   Author: Dave Rolsky <[email protected]>
   Provide: Time::Local version 1.25
   Require: Carp
   Require: Exporter
   Require: constant
   Require: parent
   Require: strict
   Repo: ActiveState Package Repository
   Link: http://ppm4.activestate.com/MSWin32-x64/5.26/2603/D/DR/DROLSKY/Time-Local-1.25.ppmx
   CPAN: http://search.cpan.org/dist/Time-Local-1.25/
   Installed: 1.25 (perl)

Use a modern browser to download the *.ppmx packages stated after Link i.e. http://ppm4.activestate.com/MSWin32-x64/5.26/2603/D/DR/DROLSKY/Time-Local-1.25.ppmx

Then perform the installation using the downloaded file:

C:\TEMP>ppm install Time-Local-1.25.ppmx
Unpacking Time-Local-1.25...done
Generating HTML for Time-Local-1.25...done
Updating files in site area...done
   2 files installed
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文