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

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

    On Fedora Linux or Enterprise Linux, yum also tracks perl library dependencies. So, if the perl module is available, and some rpm package exports that dependency, it will install the right package for you.

    yum install 'perl(Chocolate::Belgian)'
    

    (most likely perl-Chocolate-Belgian package, or even ChocolateFactory package)

提交回复
热议问题