【问题标题】:re-run perl cpan automatic config重新运行 perl cpan 自动配置
【发布时间】:2018-02-22 10:37:32
【问题描述】:

对于深入 perl 的人来说,这可能是微不足道的:如何在 mac 上重新运行 cpan 的自动配置?我选择了'local::lib',但我意识到我应该选择'sudo'。如何重新配置​​?

谢谢。

【问题讨论】:

    标签: perl config sudo cpan


    【解决方案1】:

    来自cpan

    o conf init
    

    或者,删除~/.cpan/CPAN/MyConfig.pm(最好在备份之后)。


    或者,来自cpan

    o conf makepl_arg                   ''
    o conf make                         '/usr/bin/make'
    o conf make_arg                     ''
    o conf make_install_make_command    'sudo /usr/bin/make'
    o conf make_install_arg             ''
    o conf mbuildpl_arg                 ''
    o conf mbuild_arg                   ''
    o conf mbuild_install_build_command 'sudo ./Build'
    o conf mbuild_install_arg           ''
    

    【讨论】:

    • 谢谢,我可以重新运行配置,但它不再要求 'sudo' 选项...我想为所有用户安装模块
    猜你喜欢
    • 2011-03-28
    • 2011-03-29
    • 2013-11-09
    • 2011-08-09
    • 2017-07-27
    • 1970-01-01
    • 2013-09-06
    • 2017-06-16
    • 1970-01-01
    相关资源
    最近更新 更多