开发者

Remove Perl modules from CPAN on Mac

开发者 https://www.devze.com 2023-01-22 05:47 出处:网络
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.

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开发者_C百科 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号