gpt4 book ai didi

windows - 如何在没有 Internet 连接的情况下在 ActivePerl 中安装软件包?

转载 作者:可可西里 更新时间:2023-11-01 12:44:47 24 4
gpt4 key购买 nike

在 ActivePerl 中,“ppm”从 Internet 安装包,“ppm install x.ppd”从 ppd 文件安装,但大多数 CPAN 包以 .tar.gz 的形式分发

如何为没有 Internet 连接的运行 ActivePerl 的机器提供模块? (“make”可能不可用。)

更新:可以使用互联网连接下载文件并使用USB key 等将它们传输到机器

最佳答案

我确信有更简单的方法,但我刚刚检查了一个 ppd 文件,它只是一个 xml 文件......

因此,如果您想在没有连接的电脑上手动安装,您应该能够执行以下操作:

打开文件,ex

http://trouchelle.com/ppm/Acme-LOLCAT.ppd

and download the appropriate file pointed to in the CODEBASE tag, in this case:

http://trouchelle.com/ppm/MSWin32-x86-multi-thread-5.8/Acme-LOLCAT-0.0.4.zip

Put both file on the pc with no connection, CODEBASE HREF="xxx" should be pointing to the zip file (either by putting the file in the same relative subfolder or by fixing the href so it points to the zip file on your disk)

Install from the ppd using

ppm install x.ppd

关于windows - 如何在没有 Internet 连接的情况下在 ActivePerl 中安装软件包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/219079/

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