在Mac上从CPAN删除Perl模块 [英] Remove Perl modules from CPAN on Mac
问题描述
据我所知,在Mac上使用sudo运行CPAN是必需的
sudo perl -MCPAN -e shell
安装新模块.从理论上讲,可以通过从Perl文件夹中删除模块来删除它.
我的问题是:从CPAN 带有'sudo'和没有'sudo'的CPAN安装时,Perl模块放在哪里?我同时安装了BioPerl和它似乎都可以工作.我是否通过使用sudo和不使用sudo进行安装而弄乱了任何东西?
谢谢您在混乱的Perl世界中的帮助.
您可以看到使用perldoc -l <module>
安装模块的位置.该位置完全取决于您的特定Perl安装,但是您可以通过检查perl -V
输出中的@INC
行来查看标准"位置.
As far as I know it is required to run CPAN with sudo on Mac
sudo perl -MCPAN -e shell
to install new modules. Theoretically, a module can be removed by deleting it from the Perl folders.
My question is: Where are Perl modules put when installed from CPAN with 'sudo' and without 'sudo'? I installed BioPerl both ways and it seemed to work. Did I mess anything up by installing it with sudo and without?
Thank you for a little help in the confusing Perl world.
You can see where a module got installed with perldoc -l <module>
. That location is entirely dependent on your specific Perl installation, but you can see where the "standard" locations are by examining the @INC
lines in the output of perl -V
.
这篇关于在Mac上从CPAN删除Perl模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!