2011-06-14 74 views
0

我有一个文件,它有一个我需要的perl脚本的库列表。如何告诉perl自动安装所有这些?perl如何安装在文本文件中列出的所有依赖关系?

该文件我有这样的东西。

dependencies.txt

memoize的
鲤鱼
时间::聘请企业

+0

我希望你意味着'Time :: Hires'(两个冒号)。 – cjm 2011-06-14 04:34:05

+0

哎呀,我的坏.. – 2011-06-14 05:11:31

+0

从[堆栈溢出Perl常见问题](http://stackoverflow.com/questions/tagged/perl?sort=faq):[什么是安装缺少的Perl模块的最简单的方法?]( http://stackoverflow.com/questions/65865/whats-the-easiest-way-to-install-a-missing-perl-module) – daxim 2011-06-14 08:26:01

回答

3

最简单的方法可能是install cpanm然后键入:

cpanm <dependencies.txt 
+0

工程就像魅力。谢谢 – 2011-06-14 05:12:08