Questions tagged [cpan]

CPAN is the Comprehensive Perl Archive Network, a large collection of Perl software and documentation. It is the de facto location for finding reusable Perl modules.

51 questions
11
votes
5 answers

Silent and scripted install of CPAN and Perl modules?

I need to install CPAN and some Perl modules automatically in a Scientific Linux (RHEL) installation script. Unfortunately the specific modules I want (at least one of them) cannot be found as RPM:s as far as I've seen. So I need to install CPAN,…
Mikael Grönfelt
  • 627
  • 3
  • 7
  • 14
6
votes
2 answers

CPAN fails to install DateTime module

I tried to install the Perl DateTime module by running "cpan" and typing "install DateTime" at the prompt. After a lot of processing and printing I got this message: Compilation failed in require at (eval 907) line 3. # Looks like your test died…
titaniumdecoy
  • 231
  • 2
  • 4
  • 9
6
votes
3 answers

Is it good practice to just copy Perl modules via RPM?

A few applications on our RHEL6 servers depend on a few Perl modules being present. I would like to add these Perl modules as part of the Kickstart process when turning up new hosts. As opposed to kicking off CPAN, which is slow, I decided to just…
6
votes
5 answers

Removing perl module installed with cpanm

I am Perl beginner. I wanted to use Log::Log4perl module as I am familiar how it works in Java. I used cpanm script to download module, but I ran it without "sudo". Then it installed this module to my dir /home/amer/perl5. Afterwards, I installed it…
azec-pdx
  • 205
  • 2
  • 5
  • 9
5
votes
2 answers

How do I build and configure a local CPAN module repo?

I'm a sys admin administering three air gapped (zero internet access) supercomputers. On one of the supercomputers we need to run Bugzilla. I already built my own local yum repository, but now I need to get Bugzilla up and running, which requires…
Lynn
  • 299
  • 6
  • 16
5
votes
2 answers

Help Installing Perl Module XML::Parser using CPAN

I'm trying to install the XML::Parser perl module using CPAN and can't get it to work. Below is the output that is being displayed by CPAN which appears to indicate that Expat is the issue. Geting this installed is critical for us and I'm at a loss…
Russell C.
  • 215
  • 2
  • 7
4
votes
3 answers

How to do an unattended / silent CPAN install / setup

Is there a simple, backward-compatible way to install a Perl module silently using CPAN? PERL_MM_USE_DEFAULT doesn't work for older versions that don't detect a default continent; CPAN will just loop at Sorry! since you don't have any existing…
Craig Ringer
  • 10,553
  • 9
  • 38
  • 59
4
votes
1 answer

cpan perl module warning error

Trying to install multiple perl modules. I've already installed cpan and perl via yum on the centos 6 64bit box I get similar errors as below. CPAN.pm: Going to build G/GA/GAAS/URI-1.60.tar.gz Warning: Prerequisite 'Test::More => 0' for…
user148117
4
votes
1 answer

Can I safely delete the .cpanm/work directory?

I've used cpanm to install cpan perl modules on my system, however the .cpanm/work directory is 100's of megs and I'd like to delete it. Can I delete this directory without adversely affecting my cpanm installation?
user12345
  • 173
  • 1
  • 6
4
votes
3 answers

cpan modules search from the command line?

If I'm not wrong the first step to start with the command line with cpan is next # perl -MCPAN -e shell but I don't know what I should do for looking a module, can you help me, what should I write to find next…
arrrrgv
  • 181
  • 1
  • 3
  • 7
4
votes
5 answers

installing lots of perl modules

I've been landed with the job of documenting how to install a very complicated application onto a clean server. Part of the application requires a lot of perl scripts, each of which seem to require lots of different perl modules. I don't know much…
Colin Pickard
  • 1,261
  • 2
  • 16
  • 28
4
votes
5 answers

Force CPAN to download via HTTP (skipping proxy)

I'm about to lose my mind. How in the world do you tell CPAN to download via HTTP only? ...and NOT via a proxy.
syn-
  • 483
  • 3
  • 7
  • 10
4
votes
6 answers

Eror installing Perl Crypt::OpenSSL::RSA module

I spent several hours but unable to install CPAN Crypt::OpenSSL::RSA module. It's required for Postfix's dkimproxy add-on. What I do is to run the following command in the shell: $ perl -MCPAN -e 'install Crypt::OpenSSL::RSA' When I run this…
Willy
  • 215
  • 1
  • 5
  • 9
3
votes
2 answers

How do I uninstall/remove CPAN?

Is there a way to completely remove CPAN from my machine? I tried searching Google for a way to do this, but all of the results are focused around uninstalling the modules.
norway-firemen
  • 143
  • 1
  • 4
3
votes
1 answer

Cpan/m fails to install Cache::Cache because of method "set_size"

just starting out with perl (trying to get an Request Tracker install working): For some reason I can't install Cache::Cache! (or rather the tests are failing): Notes: perl 5.8.8 on CentOS 5.8 Final (x86_64, 2.6.18-308.13.1.el5), Apache 2.2.23 (I've…
1
2 3 4