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
13
votes
7 answers

install perl module Net::SSLeay through cpan

I have tried to install Net::SSLeay though cpan to install Email::Send::SMTP::TLS but I am getting the following error. cpan[5]> install Net::SSLeay Running install for module 'Net::SSLeay' Running make for M/MI/MIKEM/Net-SSLeay-1.49.tar.gz Has…
raju
  • 4,788
  • 15
  • 64
  • 119
13
votes
2 answers

How to remove a module from CPAN?

A couple of years ago, I uploaded a module to CPAN that probably isn't or hasn't been of use to anyone. The problem it solves is simple, it doesn't solve it well, and the code embarrasses me. How can I remove it?
Tim
  • 13,904
  • 10
  • 69
  • 101
12
votes
5 answers

Installing PERL CPAN modules in local directory

i have a 1and1 hosting account and would like to install some Perl CPAN modules that are not part of the standard host package. Is it possible to install modules without ROOT access? If so, how do i do that? Thanks for the pointers in advance.
Krugers
  • 129
  • 1
  • 1
  • 3
12
votes
3 answers

Perl CPAN Can't locate CPAN/Author.pm... when trying to install nipe

I'm trying to install "nipe" on my Windows Machine but i get this error code all the time. I have installed Strawberry Perl. This is the error code: Can't locate CPAN/Author.pm in @INC (you may need to install the CPAN::Author module) (@INC…
Hellasguys1212
  • 121
  • 1
  • 3
12
votes
2 answers

Installed CPAN Modules in Problematic Location

I am using CentOS 7 and seting up a new server. Whilst logged in as root, I have installed multiple perl modules through CPAN. Unfortunately, they seem to have installed inside root's home directory. I didn't notice this until all the modules were…
12
votes
2 answers

CPAN Requirements File

With pip you are able to create a requirements file to specify which libraries to install. Is there an equivalent for perl modules using CPAN? I came across ExtUtils::MakeMaker, but this seems like the make file is for each module specifically. I…
DoolAy
  • 247
  • 3
  • 9
12
votes
4 answers

Do different versions of Perl require different CPAN module installations?

We have a server farm that we are slowly migrating to a new version of Perl (5.12.1). We are currently running 5.8.5. The OS will be upgraded from RedHat 4 to RedHat 5 as well, but RedHat 5 is still back on Perl 5.8.8. Thus for a while in our…
Leonard
  • 13,269
  • 9
  • 45
  • 72
12
votes
4 answers

How do I install Perl's SVN::Client?

I want to use the SVN::Client cpan module to check out code from a repository. But how to install and use this module? The documentation is kind of no existing. I have tried install the Alien::SVN module both through cpan and build it myself. And it…
Joakim
  • 121
  • 1
  • 1
  • 3
12
votes
4 answers

Can't locate XML/Simple.pm in @INC after install

When I run my perl script, I keep getting this error: Can't locate XML/Simple.pm in @INC after install I have installed a bunch of modules, including Bundle::CPANxxl with CPAN. The first time I ran/installed CPAN, I executed it as root: $ sudo…
Chubeez
  • 121
  • 1
  • 1
  • 4
12
votes
2 answers

CPAN first launching configuration

I'm taking a look into Perl as a total beginner. I want to try some CPAN modules. When I run an install command on my Osx console, CPAN asks for a configuration with the following statement : To install modules, you need to configure a local Perl…
user2094540
12
votes
4 answers

How do I tell from a module’s CPAN page whether it is in the core distribution?

For example, when going through the Time::HiRes documentation on search.cpan.org, is there some indication in the page itself the module is now part of Perl core distribution? I know I can usually find that out with some googling, but I'm trying to…
Sundar R
  • 13,776
  • 6
  • 49
  • 76
12
votes
5 answers

Perl documentation (POD) browsers?

I'm looking for is a good on-screen POD reading experience. For years, I've used perldoc or man running in an xterm to read Perl documentation on screen, and a small custom program built around Pod::LaTeX to print it. The printed version is good:…
derobert
  • 49,731
  • 15
  • 94
  • 124
12
votes
6 answers

Which Perl module would you recommend for JSON manipulation?

As usual, I'm happy to deal with CPAN because it got all we need. As usual, I'm lost because there is plenty of stuff. I can find the core JSON one by myself, and feel enthusiastic by a JSON::Tiny other. My needs are very simple (parsing stuffs from…
smonff
  • 3,399
  • 3
  • 36
  • 46
11
votes
2 answers

How should I improve my perl application deployment process?

I develop and maintain a bioinformatics application suite of 50+ scripts and its deployment process is a mess: Entire suite is in one big git repository. It has lots of CPAN dependencies, and dozens of internal modules as well. Development…
user1481
  • 849
  • 1
  • 5
  • 15
11
votes
5 answers

CPAN Perl modules installer not finding tar file

It seems I have a configuration problem when installing Perl modules through CPAN and I don't know how to correct it: [root@ip JESSE]# pwd /root/.cpan/sources/authors/id/J/JE/JESSE [root@ip JESSE]# ls -l total 240 -rw-r--r-- 1 root root 105464 Feb…
user1164594
  • 161
  • 1
  • 1
  • 6