如何创建带有额外捆绑模块的便携式草莓? [英] How can I create a portable strawberry with extra bundled modules?

查看:67
本文介绍了如何创建带有额外捆绑模块的便携式草莓?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

便携式草莓perl真是天赐之物-我可以将其与实际脚本一起捆绑到NSIS安装程序中,并让用户双击它.但是,我仍然必须手动在每个用户的计算机上安装脚本所需的CPAN模块.

The portable strawberry perl is a godsend-- I can bundle it into an NSIS installer along with the actual scripts and have the user double click it. However, I'm still having to install CPAN modules that our scripts need, manually on each user's computer.

是否存在将cpan模块注入"草莓perl便携式版本的便携式方法?

Is there a portable way to 'inject' cpan modules into strawberry perl's portable version?

将便携式草莓放在开发机器上,通过CPAN安装模块,然后重新压缩以进行分发,是否是一个好主意? (我想我需要将安装位置固定为c:\ custom-perl或其他方式).有人知道更直接的方法吗?我想我应该将cpan命令编写脚本到安装程序中,但是如果用户不必等待20分钟以上的时间来等待安装程序(编译所有依赖项需要花费多长时间),那就太好了.

Would it be a good idea to take the portable strawberry on a development machine, install modules via CPAN, and re-zip it for distribution? (I imagine I'd need to fix the install location to c:\custom-perl or something if I do this). Anyone know of a more direct way? I suppose I should script the cpan commands into the installer, but it would be nice if the user didn't have to wait 20 minutes+ for the installer (which is how long it takes to compile all dependencies).

推荐答案

我认为,如果您使用一种CPAN工具(cpan/cpanp/cpanm),它应该安装到Z:\<strawberry path>\perl\site\lib就可以了,然后您可以打包整个事.

I think if you use one of the CPAN tools (cpan/cpanp/cpanm) it should install just fine to Z:\<strawberry path>\perl\site\lib and then you can pack the whole thing up.

这篇关于如何创建带有额外捆绑模块的便携式草莓?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆