Using cpanm to install Perl modules

CPANM is very smart tools for easy installing of perl modules. 

Here is the weblink where you can download cpanm:
http://search.cpan.org/~miyagawa/App-cpanminus-1.7001/bin/cpanm

After finding cpanm, I always use it to install perl modules. To me, the most interesting functions is that cpanm can handle module dependencies.

Here is an example of using cpanm to install perl module: Venn::Chart



-bash-4.1$ cpanm Venn::Chart
--> Working on Venn::Chart
Fetching http://www.cpan.org/authors/id/D/DJ/DJIBEL/Venn-Chart-1.02.tar.gz ... OK
Configuring Venn-Chart-1.02 ... OK
==> Found dependencies: GD::Graph, GD::Text::Align, GD, List::Compare
--> Working on GD::Graph
Fetching http://www.cpan.org/authors/id/R/RU/RUZ/GDGraph-1.49.tar.gz ... OK
Configuring GDGraph-1.49 ... OK
==> Found dependencies: GD::Text, GD
--> Working on GD::Text
Fetching http://www.cpan.org/authors/id/M/MV/MVERB/GDTextUtil-0.86.tar.gz ... OK
Configuring GDTextUtil-0.86 ... OK
==> Found dependencies: GD
--> Working on GD
Fetching http://www.cpan.org/authors/id/L/LD/LDS/GD-2.56.tar.gz ... OK
Configuring GD-2.56 ... N/A
! Configure failed for GD-2.56. See /home/xie186/.cpanm/work/1447362885.54249/build.log for details.
! Installing the dependencies failed: Module 'GD' is not installed
! Bailing out the installation for GDTextUtil-0.86.
! Installing the dependencies failed: Module 'GD::Text' is not installed, Module 'GD' is not installed
! Bailing out the installation for GDGraph-1.49.
--> Working on List::Compare
Fetching http://www.cpan.org/authors/id/J/JK/JKEENAN/List-Compare-0.53.tar.gz ... OK
Configuring List-Compare-0.53 ... OK
Building and testing List-Compare-0.53 ... OK
Successfully installed List-Compare-0.53
! Installing the dependencies failed: Module 'GD::Graph' is not installed, Module 'GD::Text::Align' is not installed, Module 'GD' is not installed
! Bailing out the installation for Venn-Chart-1.02.
1 distribution installed


References:
https://www.linode.com/docs/applications/development/manage-cpan-modules-with-cpan-minus
http://www.canfield.com/on-error-do/install-cpanminus-in-centos-6-aka-cpanm
http://search.cpan.org/~miyagawa/App-cpanminus-1.7001/bin/cpanm

Comments

Popular posts from this blog

gspread error:gspread.exceptions.SpreadsheetNotFound

Miniconda installation problem: concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.

P and q values in RNA Seq