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

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

    If you're on Ubuntu and you want to install the pre-packaged perl module (for example, geo::ipfree) try this:

        $ apt-cache search perl geo::ipfree
        libgeo-ipfree-perl - A look up country of ip address Perl module
    
        $ sudo apt-get install libgeo-ipfree-perl
    

提交回复
热议问题