在Mac上从CPAN删除Perl模块 [英] Remove Perl modules from CPAN on Mac

查看:452
本文介绍了在Mac上从CPAN删除Perl模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆