Questions tagged [cpan]

Comprehensive Perl Archive Network (CPAN) is a collection of Perl modules and documentation.

Comprehensive Perl Archive Network (CPAN) is a 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, or scripts. Distributions are typically packaged with an install script called Makefile.PL or Build.PL.

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

Source

27 questions
11
votes
4 answers

CPAN vs. APT: Conflicts in versions?

I can't find the answer to this anywhere: Does a module installed via APT conflict with one installed via CPAN? Along with that question are these: Where do the installed CPAN modules live? Are they accessible globally or just to the installing…
Mei
  • 1,666
  • 2
  • 13
  • 30
9
votes
1 answer

Trying to install CPAN

I am trying to use CPAN, but I am running into an issue. First I did sudo apt-get install perl. It says it's there. I typed cpan install automatically yes sudo which indicated as done, and I can get into cpan. I downloaded the .pl I wanted to use on…
user9447
  • 1,895
  • 5
  • 26
  • 40
8
votes
2 answers

How do I undo an accidental installation of all Perl modules?

I was attempting to upgrade my Perl modules through CPAN, but I did not supply a regex/module name to upgrade: perl -MCPAN -e 'upgrade'; I can only assume the worst (which seems to be supported by the output of perldoc perllocal), i.e. all Perl…
paulrehkugler
  • 183
  • 1
  • 6
7
votes
1 answer

How to install Perl Switch.pm module required to build WebKit-GTK?

I noticed that the perl version (5.14) shipped with 12.10 does not include the Switch.pm module needed while building WebKiT-GTK. Looking around on the internet I found few suggestions indicating that I should install something call p5-switch from…
Sameer Naik
  • 73
  • 1
  • 1
  • 3
4
votes
1 answer

yum whatprovides 'perl(Foo::Bar)' equivalent with apt or dpkg?

This is certainly related to this question, but I feel it doesn't overlap, so here we go. How can I get the functionality of the following command on Ubuntu (and/or Debian as bonus): yum whatprovides 'perl(Foo::Bar)' Obviously I can attempt to rely…
0xC0000022L
  • 5,656
  • 6
  • 52
  • 91
3
votes
2 answers

can't install cpan module GD

Since I failed to install Image::Magick on my non-GUI Ubuntu server Ubuntu 14.04.2 LTS (read about it here), I tried to install another image-manupulation tool that can be used from a perl-script: GD. But I also failed to install it: ~# cpan install…
Hubert Schölnast
  • 193
  • 1
  • 2
  • 12
3
votes
5 answers

can't install cpan module Image::Magick

This question still has no solution (scroll down to "EDIT 5" to see the actual status) I am trying to install Image::Magick on my headless Ubuntu server Ubuntu 14.04.2 LTS # cpan install Image::Magick Reading '/root/.cpan/Metadata' Database was…
Hubert Schölnast
  • 193
  • 1
  • 2
  • 12
3
votes
1 answer

Several perl packages (including cpan and re.pl) not working after upgrade from 12.04 to 14.04

Several perl packages stopped working after upgrade from 12.04 to 14.04. For example, cpan gives me: Attempt to reload Scalar/Util.pm aborted. Compilation failed in require at /usr/local/share/perl/5.18.2/CPAN/Meta/Requirements.pm line 35. BEGIN…
DJG
  • 99
  • 2
  • 9
3
votes
3 answers

How to find out what package contains some Perl module

I need to install some CPAN module on my Ubuntu computer. I want to install it from deb package so I need to find out what package contains that module. Sometimes the solution for this task is pretty simple. For example if I need to install…
bessarabov
  • 1,982
  • 6
  • 23
  • 31
3
votes
1 answer

change cpan install directory

I have tried to setup cpan on my ubuntu 12.04 using: sudo cpan and it created a folder perl5 in my $HOME folder. I would like to use a different directory such as $HOME/.perl5 or somewhere in /usr/local/lib for the modules. Is it possible?
none
  • 287
  • 1
  • 4
  • 13
2
votes
1 answer

cpan / perl messed up

Lubuntu Xenial. I seem to have messed up my system perl. cpan returns: bash: /usr/local/bin/cpan: no such file or directory (I built a newer perl version from source in that directory, but removed it again). apt-get install perl…
2
votes
1 answer

How can I programatically find out which CPAN modules relate to packaged modules?

I am trying to write an Juju formula for App::Alice, a web based IRC client. According to the the installation instructions I execute the following commands to snag Alice and all of it's dependencies from CPAN: curl -L http://xrl.us/cpanm | perl -…
Jorge Castro
  • 70,934
  • 124
  • 466
  • 653
2
votes
1 answer

Error installing SHA

I'm trying to install SHA using the following command perl -MCPAN -e 'install Digest::SHA' I also tried using: sudo cpan 'install Digest::SHA' But i'm getting a linker error: /usr/local/bin/ld: this linker was not configured to use sysroots…
naka
  • 419
  • 2
  • 6
  • 13
2
votes
1 answer

Perl module Set::IntervalTree is not installing

Please help me resolve this issue. I am trying to install a Perl module Set::IntervalTree in Ubuntu. I am repeatedly receiving the following error: cpan[1]> install Set::IntervalTree CPAN: Storable loaded ok (v2.20) Going to read…
user132891
  • 31
  • 4
2
votes
1 answer

How to resolve Perl module error while trying to run NGS QC Toolkit?

I was trying to run NGS QC Toolkit http://59.163.192.90:8080/ngsqctoolkit/ in Ubuntu 12.04 LTS 64 bit version. But, after executing the command, an error shows that states it cannot find module String::Approx and needs to be installed even though I…
Shrujan
  • 21
  • 1
  • 2
1
2