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

problems with CPAN::Tarzip running on a MiniCPAN mirror

I created a local repository with minicpan in a Linux box, and then moved it to a Windows that has no access to online CPAN. But I'm getting this error messages when I try to use it: cpan> install PowerBuilder::ORCA Reading…
m0skit0
  • 25,268
  • 11
  • 79
  • 127
-1
votes
0 answers

Error during CPAN Module installation under cygwin (BUG #82295?)

I just installed cygwin on a new PC (fast SSD etc...) and now see several CPAN packages fail during install: CYGWIN_NT-10.0-19044 3.4.7-1.x86_64 2023-06-16 14:04 UTC x86_64 Cygwin Windows 10 Enterprise Ver 10.0 Build 19044 Couldn't move…
Michi
  • 37
  • 4
-1
votes
2 answers

Remove entries with specific keys from an XML file in Perl

I have XML files that look like this:
Kautuk Raj
  • 29
  • 4
-1
votes
1 answer

perl modules failing to install

I was writing a perl script and realised I needed to get some additional modules, so I used the command: $ cpan List::MoreUtils and got…
Adrian
  • 10,246
  • 4
  • 44
  • 110
-1
votes
1 answer

(perl) how the Terminal (Mac) can locate LWP... in @INC?

I try to run my perl code in the terminal but I have this error appears: Can't locate LWP/Protocol/https.pm in @INC (you may need to install the LWP::Protocol::https module) (@INC contains:…
wobot
  • 29
  • 3
-1
votes
1 answer

How to build and install local Perl modules

How does one build and install a local Perl module? I downloaded the code for a module that won't compile as-is so I mucked around in the code. I'd like to build it and install it. I sort of have the build down using the makefile although I would…
Coltrane58
  • 317
  • 1
  • 4
-1
votes
1 answer

Perl module Net::ARP, arp_lookup

I want to look up a MAC adrress by an IP. use Net::ARP; $mac = Net::ARP::arp_lookup($dev,"192.168.1.1"); But on the CPAN page, they don't explain what is this $dev variable for?
eouti
  • 5,338
  • 3
  • 34
  • 42
-1
votes
2 answers

Absolutely NO perl modules?

I'm trying to install WWW::Mechanize; but of course, something had to go wrong. I purchased a VPS, and whenever I load up CPAN (AKA The quick way), it says I'm missing modules. Such as... HTTP, LWP, Test, HTML, LOADS of things that I thought would…
Saustin
  • 1,117
  • 6
  • 15
  • 27
-1
votes
2 answers

Making cpan run properly on windows 10

I am trying to make cpan work on windows 10 professional. I have Perl 5.26 installed as well as dmake. But whenever I try to install anything it comes up with errors. is there anything more I need in order to run cpan properly? I get errors like…
Tobbes
  • 41
  • 11
-1
votes
1 answer

path to WMI source code in perl CPAN (in command prompt)

while Try to install Net::WMIClient. In command prompt i receive a request "Enter the path to the WMI source code:" May i Know how to install WMIclient in local machine
coder
  • 1
-1
votes
1 answer

Building and testing HTTP-Proxy-0.304

I use sudo cpanm to test and install Perl dependencies. I am stuck on the line building and testing HTTP-Proxy-0.304 but I cannot continue the compilation. Of course I made a Perl Makefile.pl to see the dependencies that are missing. I also tried…
falco
  • 51
  • 7
-1
votes
1 answer

CGI::Session.pm file not present

I'm working latest CGI module (version 4.3+) and when I try to create CGI:: Session objects in a pl file, it's throwing error saying Session.pm file not present. As it said Session.pm file is not existing in @INC. How come file missed and is there…
LNP
  • 23
  • 4
-1
votes
1 answer

Date::Manip install from cpan fails on mac - can't find ExtUtils::MakeMaker

I am trying to install Date::Manip on Mac OS X 10.10 using cpan. I have Xcode and command line tools installed. When I type sudo cpan -i Date::Manip I see the following error: ---- Unsatisfied dependencies detected during ---- ---- …
dannyhmg
  • 135
  • 8
-1
votes
1 answer

update perl dancer framework resulting in error message

Following this tutorial "https://perlmaven.com/getting-started-with-perl-dancer" On Windows command line, I run the command "cpanm --verbose Dancer" and that resulted in error "Failed to download…
Dung
  • 19,199
  • 9
  • 59
  • 54
-1
votes
2 answers

Shell script to automate the installation of cpan modules

I am writing a shell script to automate the installation of cpan (Comprehensive Perl Archive Network) modules. #!/bin/bash perl -MCPAN -e shell o conf make_arg -I/"$PWD" o conf make_install_arg -I/"$PWD" The first command is being executed and it…
V. Tej
  • 81
  • 1
  • 12