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

标签 windows perl activeperl

在 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/

相关文章:

c++ - boost相当于windows mutex

perl - Perl 脚本能否检测它是否在 Activestate 与 Strawberry Perl 下运行?

windows - 谁是使用 CFEXECUTE 调用的批处理文件创建的文件夹的所有者?

linux - 如何将 perl 模块转换为 deb 包?

mysql - 在 Perl DBI 中处理不完整的数据

string - 如何使用 Perl 查找文件中的特定行?

windows - 我应该为 Windows 选择 ActivePerl 还是 Strawberry Perl?

perl - ActivePerl 不会向浏览器输出 fatal error

python - 在 Windows 8 上将麦克风级别设置为某个值

使用浏览控件时 Java 应用程序崩溃