如何告诉CPAN.pm将所有模块安装在特定目录中? [英] How do I tell CPAN.pm to install all modules in a specific directory?
本文介绍了如何告诉CPAN.pm将所有模块安装在特定目录中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已设置
makepl_arg [INSTALLDIRS=site PREFIX=~/perl]
mbuildpl_arg [--install_base ~/perl]
。我曾希望这会导致模块安装在同一位置,但是我仍然必须在PERL5LIB中设置多个路径:
in the CPAN.pm configuration. I had hoped that this would cause modules to get installed in the same place, but I still have to set multiple paths in PERL5LIB:
export PERL5LIB=~/perl/share/perl/5.10.0:~/perl/lib/perl5/:~/perl/lib/perl/5.10.0
这种情况已经存在很长时间了,我刚刚忍受了,但是我想知道是否有人知道如何获取CPAN.pm来将所有模块放入其中
This has been the case for a long time and I have just lived with it, but I was wondering if anyone knew how to get CPAN.pm to put all modules in the same directory?
推荐答案
安装本地:: lib 。它将为您处理所有配置。
Install local::lib. It will handle all the configuration for you.
这篇关于如何告诉CPAN.pm将所有模块安装在特定目录中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文