如何使用Perl脚本分发/捆绑Math :: Random?

时间:2012-06-19 12:52:07

标签: perl perl-module

我有一个使用Math :: Random的简单Perl脚本。

有什么方法可以用Math :: Random分发脚本,这样用户就不必安装它了吗?

(我的很多用户没有安装库,也没有root权限,可能没有足够的技术来安装任何东西。)

如果重要的话,每个人都将使用AMD 64位Linux。

1 个答案:

答案 0 :(得分:1)

Math :: Random是一个XS模块,所以你不能只是bundle it in the customary inc directory。必须编译该模块。由于您不希望用户对其进行编译,you must do it并发送包。