Step to install missing Perl Modules

Step to install missing Perl Modules Can't locate Foo.pm in INC, CPAN.pm, Inliner.pm, new.pm, Expect.pm, boolean.pm, JSON.pm

When we running Perl script, we should get the following error at least once. Just so find Step to install missing Perl Modules.

Can't locate Foo.pm in @INC

here, that Foo.pm can change by any other Modules. Like,
Can’t locate CPAN.pm in @INC
Can’t locate Inliner.pm in @INC
Can’t locate Net/SSH/Perl.pm in @INC
Can’t locate new.pm in @INC
Can’t locate Expect.pm in @INC
Can’t locate boolean.pm in @INC
Can’t locate JSON.pm in @INC
Can’t locate Archive/Tar.pm in @INC
Can’t locate LWP/Simple.pm in @INC
Can’t locate Box/Core/Utils.pm in @INC,

In Windows

If using ActivePerl in windows, that PPM (Perl Package Manager) can do it simple by following sample code,

# ppm
ppm> search net-smtp
ppm> install Net-SMTP-Multipart

To avoid this kind of problems, give more priority to following kind of Perl Packages,

>> Debian/Ubuntu: apt-cache search 'perl$'

>> Arch Linux: pacman -Ss '^perl-'

>> Gentoo: category dev-perl

In Unix

In shell, start with cpan

# cpan

then type

install Chocolate::Belgian

or type same code in short form. Like,

cpan Chocolate::Belgian

For More CPAN-FAQ

The following two tabs change content below.
I am Karthik, software engineer by profession. I'm giving some steps to installing, re-installing, updating, removing and any other related queries about software’s, operating systems, plug-ins and so on. You can find and follow me, from Social Media or here. Google+

Latest posts by KarSho (see all)

Leave a Reply

Your email address will not be published. Required fields are marked *

Please Fill this Sum * Time limit is exhausted. Please reload CAPTCHA.