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
1 answer

Perl/Tk not building via CPAN on OS X Mountain Lion

I can not get Perl/Tk to install via CPAN on OS X Mountain Lion. It errors with an error in a file with which google does not help: /Users/villadelfia/perl5/perlbrew/perls/perl-5.17.8/bin/perl5.17.8…
0
votes
1 answer

cpan issue "Bad luck...still failed"

While configuring cpan with o conf init: I'm getting following error: If you're accessing the net via proxies, you can specify them in the CPAN configuration or via environment variables. The variable in the $CPAN::Config takes precedence. Your…
Mandar Pande
  • 12,250
  • 16
  • 45
  • 72
0
votes
1 answer

install: missing destination file operand after `PREFIX=~/perlmods'

Trying to install DBD::mysql. Shared hosting. Perl/cpan installed in my home directory using perlbrew. There is no mysql server running on this box, and there shouldn't need to be. Here is the output that I get when doing install…
uhcafigdc
  • 11
  • 1
  • 3
0
votes
1 answer

Unable to install a CPAN module

I am trying to install a CPAN module Statistics::ChiSquare. I am running Strawbwerry perl and Padre on my Windows 7 machine. First I installed cpan.pm. An then tried to install the module, but got the following error: C:\Windows\System32>cpan…
user466663
  • 815
  • 4
  • 18
  • 40
0
votes
2 answers

Using CPAN in perl scripts

I'm writing a script that uses some CPAN modules. What can I do so that co-workers can use my script without manually installing these CPAN modules? Thanks!
Q-bertsuit
  • 3,223
  • 6
  • 30
  • 55
0
votes
1 answer

Install ffmpeg (perl package) on windows xp

I'm trying to install ffmpeg by typing "cpan install FFmpeg" in my command prompt. I've got Image::Magick, Image::PBM, Image::Magick::Iterator installed, which, I understand, are some of the prerequisites that I need, but it appears that that's not…
Daniel Rusev
  • 1,331
  • 2
  • 16
  • 35
0
votes
4 answers

Which module to use for storing small cache files in Perl?

I've written a script that needs to store a small string in-between runs. Which CPAN module could I use to make the process as simple as possible? Ideally I'd want something like: use That::Module; my $static_data = read_config( 'script-name' ); #…
Andreas
  • 7,470
  • 10
  • 51
  • 73
0
votes
2 answers

[Ubuntu]Cant install Cpan Install::Thread

I'm facing some issues for quite some days now, google hasnt helped me too much. I want to use perl program that requires threads but it gives me a hard time. i'm currently using Perl 5.10.1, it doesnt support multi threading but normally the…
0
votes
1 answer

function not implemented in this class - perl error

http://cpansearch.perl.org/src/MSTROUT/YAML-0.84/lib/YAML/Loader/Base.pm If I am hitting die 'load() not implemented in this class.'; What does that mean? I am a complete perl newbie and trying to learn/debug why I am seeing this error. Does that…
hari
  • 9,439
  • 27
  • 76
  • 110
0
votes
3 answers

Installing perl switch using CPAN is failing

I pasted the output below (originally posted to http://pastebin.com/Sh7a8tHK) cpan[1]> install Switch Reading '/.cpan/Metadata' Database was generated on Tue, 11 Dec 2012 05:55:05 GMT Running install for module 'Switch' Running make for…
user974896
  • 1,795
  • 4
  • 28
  • 48
0
votes
2 answers

'Class com.gargoylesoftware.htmlunit.WebClient not found' when installing WWW::HtmlUnit

I'm trying to install WWW::HtmlUnit for perl in Ubuntu 12.04 64bit. I'm following the directions from the CPAN page. However am getting an error stating that Class com.gargoylesoftware.htmlunit.WebClient not found at…
bdizzle
  • 419
  • 2
  • 5
  • 19
0
votes
1 answer

searchcpan.actvestate.com is redirecting to search.cpan.org

Apologies if I understood anything wrong for perl repository. I am using activestate perl on my windos for development. To look for any missing module I used to search it at http://searchcpan.activestate.com site. This used to give me the…
rpg
  • 1,632
  • 2
  • 18
  • 34
0
votes
1 answer

"dzil new" stopped working

I'm using perlbrew. Tested under Perl v5.16.2 and v5.14.2, on Mac OS X, Debian and Ubuntu boxes. The result is always the same: stas@Stanislaws-MacBook-Pro:~$ dzil new Some::Module [DZ] making target dir /Users/stas/Some-Module [DZ] writing files to…
creaktive
  • 5,193
  • 2
  • 18
  • 32
0
votes
2 answers

Using Net::FTP with Perl and trying different commands

For testing purposes on my end, I need to write a program that uses [Net::FTP][Net::FTP] to connect to a server, and then receives a file in a certain directory. Once it is received, put it right back in that same spot. Here is my code: …
user1854765
  • 1
  • 2
  • 2
0
votes
1 answer

not able to install Text::Bidi CPAN module

Trying to install Text::Bidi CPAN module, but failed. Getting this error. Do anybody know any work around for this? OS : Ubuntu 10.04
Saurabh Saxena
  • 3,005
  • 10
  • 31
  • 46