一 安装perl模块到非自定义目录
How do I get MakeMaker and Module::Build to install to the same place?
Module::Build, as of 0.28, supports two ways to install to the same location as MakeMaker.
1) Use INSTALL_BASE / --install_base
MakeMaker (as of 6.31) and Module::Build (as of 0.28) both can install to the same locations using the "install_base" concept. See "INSTALL_BASE" in ExtUtils::MakeMaker for details. To get MM and MB to install to the same location simply set INSTALL_BASE in MM and --install_base in MB to the same location.
perl Makefile.PL INSTALL_BASE=/whatever
perl Build.PL --install_base /whatever
2) Use PREFIX / --prefix
Module::Build 0.28 added support for --prefix which works like MakeMaker's PREFIX.

本文介绍了如何将Perl模块安装到非标准路径以及如何在自定义目录下使用这些模块。内容包括安装步骤和使用方法,以及如何检查已安装的模块。
最低0.47元/天 解锁文章
596

被折叠的 条评论
为什么被折叠?



