Manual installation of a Perl Module

前端 未结 3 915
孤独总比滥情好
孤独总比滥情好 2020-12-03 03:28

I have downloaded the module Digest::SHA1 and extracted it to a directory (../Digest-SHA1-2.13/) , then copied all the SHA1.* files into (../Digest-SHA1-2.13/Di

3条回答
  •  误落风尘
    2020-12-03 03:53

    Any reason why you can't use local::lib?

    create and use a local lib/ for perl modules with PERL5LIB

    It is basically a tool to help you use a private (non-systemwide) directory as your Perl library directory.

    After setting it up, you could run a command like

    perl -MCPAN -Mlocal::lib -e 'CPAN::install(Algorithm::CouponCode)'
    

    and then your script would use your locally installed copy of Algorithm::CouponCode).

提交回复
热议问题