CPAN在OS X中安装Perl模块的位置在哪里?

时间:2010-08-19 06:55:12

标签: perl macos cpan

很好奇CPAN在OS X中默认安装所有Perl模块的地方。

2 个答案:

答案 0 :(得分:20)

问问!

iains-imac:~ bigiain$ perl -e 'print join("\n",@INC)'
/Library/Perl/Updates/5.10.0/darwin-thread-multi-2level
/Library/Perl/Updates/5.10.0
/System/Library/Perl/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/5.10.0
/Library/Perl/5.10.0/darwin-thread-multi-2level
/Library/Perl/5.10.0
/Network/Library/Perl/5.10.0/darwin-thread-multi-2level
/Network/Library/Perl/5.10.0
/Network/Library/Perl
/System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.10.

(这是一个沼泽库存10.6.3安装)

答案 1 :(得分:2)

除了系统默认值,您可能已将CPAN客户端配置为在其他位置安装模块。所以看看你的配置:

$ cpan
cpan> o conf makepl_arg
cpan> o conf make_arg
cpan> o conf make_install_arg
cpan> o conf mbuildpl_arg
cpan> o conf mbuild_arg
cpan> o conf mbuild_install_arg
cpan> exit