:
幸亏
池上
# perl -V:'install(privlib|archlib|vendorlib|vendorarch|sitelib|sitearch)' |column -t -s "="
installarchlib '/usr/lib/perl5/5.26/x86_64-cygwin-threads';
installprivlib '/usr/share/perl5/5.26';
installsitearch '/usr/local/lib/perl5/site_perl/5.26/x86_64-cygwin-threads';
installsitelib '/usr/local/share/perl5/site_perl/5.26';
installvendorarch '/usr/lib/perl5/vendor_perl/5.26/x86_64-cygwin-threads';
installvendorlib '/usr/share/perl5/vendor_perl/5.26';
然后,为了了解这些内容的含义,我们可以(在perl源代码中)查看以下文件:
./Porting/Glossary
:
installarchlib '- is the same for modules with arch- or build-dependent components.'
installprivlib '- contains the "pure Perl" modules that came with Perl.'
installsitearch '- is the same for modules with arch- or build-dependent components.'
installsitelib '- contains the "pure Perl" modules installed by you.'
installvendorarch '- is the same for modules with arch- or build-dependent components.'
installvendorlib '- contains the "pure Perl" modules installed by your distro.'
选项:
installstyle (installstyle.U):
风格
perl安装的一部分。这
对于需要操作整个perl的工具非常有用
只有两种样式:
lib
lib/perl5
. 默认值
库位置(例如privlib、sitelib)为
$prefix/lib
或
$prefix/lib/perl5
. 前者在以下情况下有用:
是一个
专用于perl的目录(例如/opt/perl),而后者是
如果$prefix由多个包共享,则非常有用,例如,如果
$prefix=/usr/local
不幸的是,虽然这个“style”变量用于设置
所有三个目录层次结构(核心、供应商和站点)都没有
确保相同的样式实际上适用于所有这些
$siteprefix
可能是/usr/local。(回想起来,也许是“自由党”
风格本不应该得到支持,但它确实看起来是一个不错的选择
对于像MakeMaker这样能够
例如,如果用户打算将模块安装到专用计算机中
目录(可能通过在Makefile.PL命令行上设置前缀),
那么就没有理由假设配置时间
$installstyle设置将与该前缀相关。
对结果进行模式匹配。
为了与perl5.005及更早版本兼容,默认设置为
基于$prefix是否包含字符串“perl”。
所有的细节都可以在
INSTALLATION
文件,在
Installation Directories
-
Directories for the perl distribution
:
默认情况下,“配置”将使用以下目录(5.28.1):
Configure variable Default value
$prefixexp /usr/local
$binexp $prefixexp/bin
$scriptdirexp $prefixexp/bin
$privlibexp $prefixexp/lib/perl5/$version
$archlibexp $prefixexp/lib/perl5/$version/$archname
-
Directories for site-specific add-on files
:
Configure Default
variable value
$siteprefixexp $prefixexp
$sitebinexp $siteprefixexp/bin
$sitescriptexp $siteprefixexp/bin
$sitelibexp $siteprefixexp/lib/perl5/site_perl/$version
$sitearchexp $siteprefixexp/lib/perl5/site_perl/$version/$archname
-
Directories for vendor-supplied add-on files
:
如果要构建用于分发的perl二进制分发,请配置
您可以选择设置以下目录以用于
分发附加模块。
Configure Default
variable value
$vendorprefixexp (none)
(The next ones are set only if vendorprefix is set.)
$vendorbinexp $vendorprefixexp/bin
$vendorscriptexp $vendorprefixexp/bin
$vendorlibexp $vendorprefixexp/lib/perl5/vendor_perl/$version
$vendorarchexp $vendorprefixexp/lib/perl5/vendor_perl/$version/$archname
-
otherlibdirs
:
最后,Configure还提供了
$otherlibdirs
此变量包含以冒号分隔的附加目录列表
. 默认情况下,它将为空。
-
APPLLIB_EXP
在perl构建中,还有另一种向@INC添加路径的方法
时间,这是通过设置APPLLIB_EXP C预处理器来实现的
代币APPLLIB_EXP定义的目录将添加到
@公司
第一
sh Configure -Accflags='-DAPPLLIB_EXP=\"/usr/libperl\"'