by rupe

How do I install a CPAN module in Perl?

CPAN is the Comprehensive Perl Archive Network, and contains a large collection of Perl software and documentation. I found myself needing to install a CPAN module for the first time today, since the latest version of The GIMP wanted the Gtk->Perl Interface module.

Installing a CPAN module is actually awfully easy:

  1. # tar -zxvf your_module_archive.tar.gz
  2. # cd your_module_archive
  3. # perl Makefile.PL
  4. # make
  5. # make test
  6. # make install
The make test step is optional, but useful. Andreas König has also written a CPAN module that does all these steps for you.

Information from the CPAN.org install page, and perl.com

 


 
Read more of   The Yak's Frequently Questioned Answers   (mod.2008-11-08)

392.   They're funding the Selective Service again! Am I gonna get drafted?   [overcode/2003-11-08] ( strick/2003-11-15 )
351.   How can I setup netware services / mount netware servers in linux?   [jake/2003-02-25]
316.   Ericsson Test Mode - Cellular Wiretaping   [brad/2002-05-15]
311.   What are the YAK's most popular FQAs?   [strick/2002-10-04]
261.   Which companies belong to the DVD Copy Control Association (DVD CCA) as of 08-2001?   [rupe/2001-08-03]
260.   What is the best language to search google with?   [kurt/2001-07-23]
246.   why am i getting errors with when reflashing my TINI from a linux box?   [jesse/2001-06-09]
242.   What bugs exist in the Nokia 7190 firmware?   [rupe/2001-07-17]
235.   How do I enable the diagnostic mode on a Garmin eTrex GPS?   [rupe/2001-05-30]
230.   What is a good book to get started with Python?   [rupe/2001-05-30]
185.   what are some cool domain names?   [jesse/2001-02-26] ( josh/2001-04-03 )
169.   Where does The YAK go out to eat?   [strick/2001-04-24] ( combee/2001-05-29 )
137.   where can i find docs for radioshack scanners?   [jesse/2000-10-20]
64.   Where are other sites about YAKS (the animals)?   [strick/2000-02-20]
41.   Which OS Sucks? Which OS Rules?   [strick/2000-02-02]