What's the easiest way to install a missing Perl module?

前端 未结 24 2709
情深已故
情深已故 2020-11-21 05:28

I get this error:

Can\'t locate Foo.pm in @INC

Is there an easier way to install it than downloading, untarring, making, etc?

24条回答
  •  太阳男子
    2020-11-21 05:35

    If you want to put the new module into a custom location that your cpan shell isn't configured to use, then perhaps, the following will be handy.

     #wget 
     ##unpack
     perl Build.PL
    ./Build destdir=$HOME install_base=$HOME
    ./Build destdir=$HOME install_base=$HOME install
    

提交回复
热议问题