CPAN is a popular repository for perl modules and scripts.
Questions tagged [cpan]
30 questions
8
votes
2 answers
gcc not finding header file though its path has been included with -I
I'm trying to install a module (Package::Stash::XS) via cpanm, but the installation is failing due to a gcc error. The command:
gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing -pipe -fstack-protector -DUSEIMPORTLIB -O3 …
Sundar R
- 1,539
4
votes
1 answer
Error when installing cpanminus on Mac OS X
I am trying to install cpanminus through the terminal using the command given on the website:
sudo cpan App::cpanminus
However I receive the following error:
N01-0545---MB:CPAN-1.9800 sucadmin$ sudo cpan App::cpanminus
Password:
Going to read…
lilyrobin
3
votes
2 answers
Install Perl module with dependencies
I'm trying to install a Perl module like this:
pi@raspbmc:~$ sudo cpan HTTP::Date
CPAN gets the file, the checksum is OK, and it uncompressed successfully.
But I got this error:
Using Tar:/bin/tar xf "HTTP-Date-6.02.tar":
Couldn't untar…
user268365
3
votes
3 answers
What steps to take when CPAN installation fails?
I have used CPAN to install perl modules on quite a few occasions, but I've been lucky enough to just have it work. Unfortunately, I was trying to install Thread::Pool today and one of the required dependencies, Thread::Converyor::Monitored failed…
pythonic metaphor
- 2,436
3
votes
1 answer
No 'Makefile' created KAMENSKY/Text-Bidi-2.11.tar.gz
I am trying to install following perl module via cpan on centos 6.x but unfortunately getting error. Please advise to solve.
Text::Bidi
Version: 0.03
Usage: Label batch PDF
CPAN
/usr/bin/cpan script version 1.9, CPAN.pm version 1.9402
PERL
This is…
Chaminda Bandara
- 559
2
votes
1 answer
How to add Perl modules using CPAN on El Capitan
When OS X El Capitan arrived, the ability to use CPAN to add or update Perl modules disappeared. It seems that the scripts either want to alter /usr/bin, which is now prohibited, or they try to use binaries from /sw/usr/bin which aren't there and…
John Wooten
- 123
2
votes
2 answers
Perl EPIC Not recognising installed CPAN modules
Eclipse on a mac, was working fine adding new modules until I Installed Text::CSV_XS which Eclips doesn't recognise as added to @INC For instance
use strict;
use…
Recct
- 214
2
votes
3 answers
Make test failing when installing packages with CPAN on Cygwin
I'm trying to install Date::Manip::Date, which requires YAML::Syck. I'm running Cygwin on Windows XP.
Both packages fail their make tests. I have installed other packages sucessfully, such as Text::CSV, Text::CSV_XS and Text::CSV::Simple
I've tried…
Asmor
- 121
1
vote
1 answer
Missing Switch module on exiting Perl installation
I have been working on a Linux 64bit cluster for months, and this morning it seems as if the Switch module for Perl has disappeared from the system.
If I do a find on the place where I expect it to be, I get:
find /opt/thirdparty/perl/ -name…
719016
- 4,683
1
vote
1 answer
Why does cpanm fail on distributions without proper makefiles where cpan -i succeeds?
I'm on Strawberry Perl on Windows 7 64-bit. cpanm fails like this for many packages in cpan:
$ cpanm Getopt::Long::Descriptive
Fetching http://www.cpan.org/authors/id/R/RJ/RJBS/Getopt-Long-Descriptive-0.097.tar.gz ... OK
Configuring…
Chris Betti
- 2,364
1
vote
1 answer
Installing libpng on a Mac with Maverick
I want to install libpng library on my Mac, which runs under Mavericks.
Here is a simple Perl script to check if it is ok:
use GD;
my $gd = GD::Image->new();
my $ok = $gd->can('png') ? 'Yes' : 'No';
print "$ok\n";
Of course, running this script…
Romain Linsolas
- 175
1
vote
1 answer
cpan fails with "Error code 130, while making 'pm_to_blib'"
I recently installed Perl on my Windows 7 machine.
Upon running cpan App::cpanminus, I got the following error:
D:\Perl>cpan App::cpanminus
CPAN: CPAN::SQLite loaded ok (v0.199)
Database was generated on Mon, 04 Feb 2013 07:21:27 GMT
Running install…
Martin Nielsen
- 369
1
vote
1 answer
cpan in FreeBSD 9.0
I have a FreeBSD 9.0 installation which works fine. The only problem is cpan. I tried forums.freebsd but didn't help much.
Here is some cli output:
[user ~]$ cpan --version
Cannot load ExtUtils::MakeMaker: Can't locate ExtUtils/MakeMaker.pm in @INC…
atmosx
- 174
1
vote
1 answer
CPAN install to many directories
When I install stuff locally (not as root) with CPAN, it ends up putting things in a multitude of places. So much so, that I have to set PERL5LIB to five directories!
Here's the CPAN settings where I tell it where to install to:
'makepl_arg' =>…
Jayen
- 522
1
vote
1 answer
Perl CPAN: Can't install module dependencies - Could not find a version X or above
Whenever I try installing a perl module on my system, it fails to install the dependencies. I had this working before, I'm not sure why it's not working on my fresh setup.
For example, I try to install Catalyst-Runtime-5.80032 (I downloaded from…
mark
- 801