一 安装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.