PERL Scripting: Install a module through CPAN and manually
In this we will see how to install PERL modules in Linux/Unix. Some times it is required to enhance a program capabilities by including a piece of code. Instead of we writing a code we can check if any modules are available at cpan.org which can be downloaded for free of cost. We can even install a module manually too. In this post we will see how to install a module in both ways. Installing a PERL module through CPAN Make sure that CPAN command is installed in your machine and configured. For steps click here. Once you configure cpan command we can use it by just typing cpan at the command prompt. cpan Output: surendra@linuxnix.com :~$ cpan Terminal does not support AddHistory. cpan shell — CPAN exploration and modules installation (v2.00) Enter 'h' for help. cpan[1]> install App::Prove::State or direct cpan install command as shown below. cpan install App::Prove::State Output: surendra@linuxnix.com :~$ cpan install App::Prove::State Reading '/home/surendra/.cpan/Metadata' Database was generated on Thu, 13 Jun 2013 19:41:02 GMT Running install for module 'App::Prove::State' Running make for O/OV/OVID/Test-Harness-3.28.tar.gz Fetching with LWP: http://ftp.lip6.fr/pub/perl/CPAN/authors/id/O/OV/OVID/Test-Harness-3.28.tar.gz Fetching with LWP: http://ftp.lip6.fr/pub/perl/CPAN/authors/id/O/OV/OVID/CHECKSUMS Checksum for /home/surendra/.cpan/sources/authors/id/O/OV/OVID/Test-Harness-3.28.tar.gz ok CPAN.pm: Building O/OV/OVID/Test-Harness-3.28.tar.gz Checking if your kit is complete… Looks good Writing Makefile for Test::Harness Writing MYMETA.yml and MYMETA.json cp lib/TAP/Parser/Result/Pragma.pm blib/lib/TAP/Parser/Result/Pragma.pm cp lib/TAP/Parser/Iterator/Array.pm blib/lib/TAP/Parser/Iterator/Array.pm cp lib/App/Prove/State/Result.pm blib/lib/App/Prove/State/Result.pm cp lib/TAP/Base.pm blib/lib/TAP/Base.pm cp lib/TAP/Formatter/Console/ParallelSession.pm blib/lib/TAP/Formatter/Console/ParallelSession.pm cp lib/TAP/Parser/Result.pm...
Read More