Questions tagged [cpan]

CPAN is the Comprehensive Perl Archive Network, a code and documentation archive of over 100,000 open-source Perl modules across more than 25,000 distributions written by more than 10,000 authors. This tag is not for general Perl questions; use the [perl] tag instead.

The Comprehensive Perl Archive Network (CPAN) is an open-source code and documentation archive of over 100,000 Perl modules across more than 25,000 distributions written by more than 10,000 authors.

CPAN has been online since October 1995 and is constantly growing. CPAN's main purpose is to provide a distributed repository for Perl programmers to locate, install, and share open source modules and code snippets.

Installable files on the CPAN are known as distributions. A distribution consists of one or more modules, documentation files (generally in ), or scripts. Distributions are typically packaged with an install script called Makefile.PL or Build.PL.

When to use this tag?

This tag is not for general Perl questions; use instead. This tag should be used for questions relating to cpan.org or modules for interacting with cpan.org and mirrors (like CPAN.pm ) ...

Documentation

CPAN Installation tools for end users

  • CPAN - the classic CPAN command line install shell
  • CPANPLUS - an updated API and command line interface to CPAN intended to be more scriptable
  • cpanminus - a faster and more concise CPAN installer
  • CPAN::Mini - create a minimal mirror of CPAN

Modules used for creating install/distribution scripts

  • ExtUtils::MakeMaker - the venerable module used to generate a make file via Makefile.PL.
  • Module::Install - a drop-in replacement for ExtUtils::MakeMaker that provides more intuitive features and customization for module authors
  • Module::Build - a mostly pure Perl alternative to ExtUtils::MakeMaker, which does not rely on a system make command.
  • Dist::Zilla - distribution builder
  • pip - Perl Installation Program

Related Links

1203 questions
0
votes
2 answers

Private perlbrew and CPAN not working. Still. Again

I thought I had it working. I have an entirely private version of Perl 5.16 (by private I mean local to my home directory), and a private place for CPAN modules. I followed the instructions at…
Chap
  • 3,649
  • 2
  • 46
  • 84
0
votes
1 answer

setting up the 'inc' directory for a dist using Module::Package

As an example, the CPAN distribution Scalar-Does-0.006 uses Module::Package in its Makefile.PL, and the code for Module::Package resides in the sub-directory inc with files…
ErikR
  • 51,541
  • 9
  • 73
  • 124
0
votes
5 answers

Why can't I install DBD::mysql so I can use it with Maatkit?

I'm trying to install Maatkit following the maatkit instructions. I can't get past having to install DBD::mysql. "Warning: prerequisite DBD::mysql 1 not found." When I try to install DBD::mysql from cpan, I get very helpful "make had returned bad…
deadprogrammer
  • 11,253
  • 24
  • 74
  • 85
0
votes
1 answer

I keep getting failures installing modules at BEGIN { plan tests => 5 }. What do I need to get past this?

The module it's failing to install is JSON::XS. Really it's failing to install anything that has the following code: BEGIN { plan tests => 5 }; From the build.log: syntax error at t/04_dwiw_encode.t line 13, near "plan tests" The offending line: …
jmcneirney
  • 1,374
  • 8
  • 23
0
votes
3 answers

Why can't cpan install XML::LibXML?

This is really weird, can someone explain why GCC can not find an include file when installing XML::LibXML? > cpan PAJAS/XML-LibXML-1.70.tar.gz ... C:/CPANTE~1/PERL51~1.0_6/site/bin/gcc.exe -c -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DWIN64…
nyet
  • 83
  • 1
  • 9
0
votes
1 answer

Transferring perl modules (RHEL)

I have need to install a couple perl modules onto my test environment (JSON and JSON::XS). However, the test environment, which mirrors production, can't have gcc installed. I do have a dev environment with gcc installed. I've used CPAN to download…
AaplMike
  • 343
  • 1
  • 4
  • 15
0
votes
1 answer

Writing MS Word 2007 with styles using Perl

How can I write a .doc file using Perl with styles like background color, font color/name/size etc.
0
votes
2 answers

xcode/perlbrew & building CPAN modules - make options? SDKs? Getting build errors

I'm brand new to OSX, but have been using UNIX/Linux for decades. Just got a new MBP Retina running latest OSX 10.8.1. installed fink installed perlbrew installed xcode All's well, except I can't get a lot of CPAN modules to build. I am guessing I…
Norma Stitz
  • 89
  • 10
0
votes
1 answer

Simple Perl module for accessing IRC servers

I'm trying to write an extremely simple IRC client which sets the topic on a given channel (for which it first needs to identify and gain ops). Ideally I want to be able to write something like this: $client = new…
pwaring
  • 3,032
  • 8
  • 30
  • 46
0
votes
1 answer

How to install all dependencies of a CPAN module?

How to install all dependencies of the module Nmap::Scanner with cpan in Perl? I did, cpan Nmap::Scanner. But, needing other dependencies for module. #!/bash/perl use Nmap::Scanner; my $scan = Nmap::Scanner->new(); …
opmeitle
  • 195
  • 6
  • 19
0
votes
2 answers

How to safely uninstall bioperl that was installed via CPAN?

I installed BioPerl via CPAN. Several tests got failed and I force installed it. I now want to install it via ubuntu software centre. Can anyone describe how to remove BioPerl that was installed via CPAN using method given here.
Chirag
  • 1,189
  • 2
  • 21
  • 43
0
votes
2 answers

Error "Can't locate version.pm in @INC" when I call my DBI module

I have installed DBI and DBD module in my computer, but when I execute the perl script, errors like "Can't locate version.pm in @INC" occurs. Is there something wrong with my DBD ?or Is there some dependency need to be installed? My OS is Redhat…
venus.w
  • 2,171
  • 7
  • 28
  • 42
0
votes
2 answers

What is wrong with my MyConfig.pm?

I'm trying to install perl modules local to my user - I don't have root access. I have setup in my directory structure the following place for perl libs: /dasd/home/miner/perl5lib/lib/lib (don't ask) - I want my perl modules there. I am going to…
PinkElephantsOnParade
  • 6,452
  • 12
  • 53
  • 91
0
votes
4 answers

Installed Perl modules not available

On CentOS 6.2, perl v5.10.1 and I cannot install XML::SAX::Expat. Using "cpan XML::SAX::Expat" a lot of the earlier problems I solved (there were a lot more errors when I first tried to installl XML::Simple) came from missing binaries required by…
Gaia
  • 2,872
  • 1
  • 41
  • 59
0
votes
2 answers

cpan2rpm cant stat /tmp folder

Im trying to build perl-Heap-Priority for RHEL6. Weired thing is when I run cpan2rpm Heap::Priority it shows following ... Tarball extraction: [/root/rpm/SOURCES/Heap-Priority-0.01.tar.gz] Can't stat /tmp/CldQkErG6r/18:51: No such file or directory …
Samiron
  • 5,169
  • 2
  • 28
  • 55