Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
据我所知,需要在 Mac 上使用 sudo 运行 CPAN
sudo perl -MCPAN -e shell
安装新模块。理论上,可以通过从 Perl 文件夹中删除一个模块来删除它。
我的问题是:从 CPAN 安装带有'sudo' 而没有'sudo' 的 Perl 模块放在哪里?我以两种方式安装了 BioPerl,它似乎工作。我是否通过使用 sudo 而没有安装它搞砸了任何事情?
感谢您在令人困惑的 Perl 世界中提供的一点帮助。
你可以看到一个模块的安装位置perldoc -l <module>。该位置完全取决于您的特定 Perl 安装,但您可以通过@INC检查perl -V.
perldoc -l <module>
@INC
perl -V