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

前端 未结 24 2705
情深已故
情深已故 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:58

    On ubuntu most perl modules are already packaged, so installing is much faster than most other systems which have to compile.

    To install Foo::Bar at a commmand prompt for example usually you just do:

    sudo apt-get install libfoo-bar-perl
    

    Sadly not all modules follow that naming convention.

提交回复
热议问题