perl模块安装自定义路径和使用

本文介绍了如何将Perl模块安装到非标准路径以及如何在自定义目录下使用这些模块。内容包括安装步骤和使用方法,以及如何检查已安装的模块。
摘要由CSDN通过智能技术生成
 

一 安装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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值