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.2010-02-10)

410.   What is naked sushi? What is Nyataimori? What is Nyotaimori? Or how do I ask for a "Naked Sushi" bar?   [jake/2006-05-21] ( novalis/2005-03-30 )
368.   Do Laws of Physics apply to Software such as PostgreSQL and MS Windows 95/NT?   [strick/2003-08-25]
353.   Can you show me something interesting with apt-cache and graphivz?   [jake/2003-03-01]
316.   Ericsson Test Mode - Cellular Wiretaping   [brad/2002-05-15]
311.   What are the YAK's most popular FQAs?   [strick/2002-10-04]
264.   What started in 1984?   [strick/2001-08-10] ( macki/2001-09-04 robey/2001-08-22 )
254.   how do i setup my orinoco wirelss card with linux 2.4.x?   [jesse/2001-07-03]
239.   What's the Grubstake?   [rupe/2001-06-05]
220.   Where can I find serial/parallel controllable, backlit LCD screens?   [rupe/2001-05-30] ( sidd/2001-05-30 )
218.   how do I make my page appear in web search results?   [josh/2001-05-08] ( strick/2001-05-08 )
170.   Where can I find the Linux Kernel Wishlist?   [rupe/2001-01-31]
164.   what are the first 4096 digits of the numerical constant PI?   [jesse/2001-01-17]
157.   In the intro to the Everclear song "A.M. Radio", what does the reference to KHJ Radio, Los Angeles refer to?   [rupe/2001-01-01]
137.   where can i find docs for radioshack scanners?   [jesse/2000-10-20]
123.   How do I check for the existence of a file in Python?   [rupe/2000-09-25]
121.   What time is it?   [rupe/2000-09-18] ( josh/2001-04-03 strick/2001-03-10 )
114.   Where's a good place to find advice about 401(k) plans?   [rupe/2000-08-07]
86.   How do those little Anti-Shoplifting tags work?   [strick/2000-05-02]
61.   Where is strick?   [strick/2001-05-30]
52.   What countries are .HR .SR .TT .LK etc.   [strick/2000-02-07]
43.   How much coffee/Mountain Dew can you drink before dying?   [robey/2002-12-06]
29.   Where can I find out about the DVD hack?   [strick/2000-02-06]
23.   What is an extropian?   [strick/2000-01-19]