I get this error:
Can't locate Foo.pm in @INC
Is there an easier way to install it than downloading, untarring, making, etc?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On Unix:
usually you start cpan in your shell:
$ cpanand type
install Chocolate::Belgianor in short form:
cpan Chocolate::BelgianOn Windows:
Example:
$ ppmppm> search net-smtpppm> install Net-SMTP-Multipartsee How do I install Perl modules? in the CPAN FAQ
Many distributions ship a lot of perl modules as packages.
apt-cache search 'perl$'pacman -Ss '^perl-'dev-perlYou should always prefer them as you benefit from automatic (security) updates and the ease of removal. This can be pretty tricky with the cpan tool itself.
For Gentoo there’s a nice tool called g-cpan which builds/installs the module from CPAN and creates a Gentoo package (ebuild) for you.