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.
1,175
questions
0
votes
0
answers
17
views
Problem loading page "404 not found Error" in Laravel Project
I have created a website that was working fine, but now I am getting 404 not found error.
The live url is glucolight.co.uk
The main page is loading but all other pages show 404 not found.
I have ....
1
vote
0
answers
47
views
cpanm force install fails to Build and test Alien::OpenSSL on WSL
I am new to perl and I have having some trouble installing some packages on my WSL2 Ubuntu20.04 distro.
The comand that I am runnig on my machine is:
sudo cpanm --force Net::RFC3161::Timestamp
Output ...
1
vote
0
answers
39
views
Error when trying to install cpan install Win32::PerfLib
I need to run one Perl script (I have not developped that script). When I tried to run perl.exe the_perl_script.pl, it throws an error about 'Win32::PerfLib'. Hence, I tried to install 'Win32::PerfLib'...
1
vote
1
answer
59
views
cpan module install failed, no prereqs missing
Just trying to install a CPAN module, don't seem to be missing any prereqs, and can't seem to find anything that points to what I need to do to fix this. Can someone make sense of what the issue might ...
1
vote
0
answers
58
views
CPAN installation prompting "waiting for read lock"
I just installed perl and am trying to install CPAN without root privilege.
As I run cpan App::cpanminus, I got into an infinite loop echoing Waiting for read lock on '~/.cpan/FTPstats.yml'. I tried ...
1
vote
2
answers
88
views
cpan problems with 02packages.details.txt.gz
I'm getting complaints about 02packages.details.txt.gz when I'm trying to install a package with cpan. The error is "Warning: Your /root/.cpan/sources/modules/02packages.details.txt.gz does not ...
1
vote
1
answer
35
views
Can't link/include C library 'krb5.h', 'krb5', aborting
I am installing a LAMP stack. (Linux Apache MySQL, Perl).
I am attempting to install the perl module authen::krb5 on Ubuntu.
https://metacpan.org/pod/Authen::Krb5
I have tried via CPAN and CPANM with ...
1
vote
1
answer
111
views
latexindent: Unknown PerlIO layer 'encoding' - Formatting failed with exit code 255 macOS 12 Monterey
I try to run latexindent under macOS (12.0.1) from Visual Studio Code (1.63.0) with the LaTeX Workshop plug-in (v8.22.0).
It doesn't work because an error occurs during formatting.
I have already ...
2
votes
1
answer
157
views
cpan says App::cpanminus is up to date but cpanm doesn't come up in /usr/bin
SHORT QUESTION
I've installed cpanm on Mac mini G4 Leopard 10.5.8 with perl-8.8.8 using /usr/bin/cpan -i App::cpanminus and then **sudo** /usr/bin/cpan -i App::cpanminus It said App::cpanminus is up ...
1
vote
0
answers
130
views
Getting error while installing Inline::Python and Proc::ProcessTable package for perl
Environment:
Perl: 5.32.1 Strawberry perl
OS: Windows 10
Python: 3.7.9 and 3.9.7 but using only 3.7.9 to install inline Python
Output on executing cpan command on cmd line to install
Inline::Python,
...
1
vote
1
answer
85
views
CPAN fails to install Algorithm::CurveFit
I'm attempting to install Algorithm::CurveFit by simply typing cpan Algorithm::CurveFit at the terminal on my Ubuntu VM.
However, this returns the following errors:
Loading internal logger. Log::...
1
vote
0
answers
128
views
SSL connect attempt failed because of handshake problems using Net::FTPSSL
I am trying to create a Perl script with Net::FTPSSL that move the files from the FTP server to actual server.
The script will run every X minutes / seconds to check if the customers uploaded ...
1
vote
2
answers
90
views
cpan App::cpanminus fails with multiple errors: "Giving up parsing your /Users/foo/.cpan/sources/modules/02packages.details.txt.gz, too many errors"
I am trying to install App::cpanminus Perl module using cpan App::cpanminus. I am getting the following errors. How can I fix the errors and install the module?
% cpan App::cpanminus
Reading '/Users/...
1
vote
0
answers
83
views
Running Ora2Pg with PostgreSQL 14
I've got PostgreSQL v14 server to migrate data from old Oracle server using ora2pg tool version 22.1.
There is a problem when i try to execute ora2pg -c properties.conf, that gives me the following ...
1
vote
2
answers
175
views
Perl modules not recognized
I'm trying to run unitas_1.7.8.pl, a bioinformatic software available here. Importantly, I've used this software many times in the past successfully on this ubuntu machine. Now when I run the command
...
0
votes
1
answer
189
views
Getting error Can't load '/usr/local/lib64/perl5/auto/Wx/Wx.so' for module Wx
I couldn't download Wx properly using cpan and kept getting an error so I tried to force-install it, now, when running:
#!/usr/bin/perl -w
use strict;
use Wx;
I get the following error:
Can't load '/...
0
votes
0
answers
120
views
Having trouble installing CPAN module. Says needs MakeMaker version 6.78 required this is only version 6.68
Appending installation info to /usr/lib64/perl5/lib/perl5/x86_64-linux-thread-multi/perllocal.pod
BINGOS/ExtUtils-MakeMaker-7.62.tar.gz
/bin/make install INSTALL_BASE=/usr/lib64/perl5 -- OK
...
16
votes
1
answer
386
views
How do I release a Perl module to CPAN?
I need to create a CPAN module, but I don't know where to start or how to do that. I've already written my modules in Perl, but I don't know how to continue. Could anyone help?
4
votes
1
answer
201
views
How to specify external library file locations when installing CPAN modules
I'm trying to get Perl's Finance::Quote module working after MacOS upgrade to 11.4. One of the dependencies is B::Keywords. B::Keywords installation fails a test with this error:
> sudo cpan B::...
2
votes
1
answer
186
views
Use perl WWW:Mechanize on MacOS Big Sur
I want to use WWW:Mechanize with perl on BigSur.
My Perl:
perl 5, version 34, subversion 0 (v5.34.0)
I could install perl as far as using the modules:
DBI;
LWP::UserAgent;
LWP::...
3
votes
0
answers
94
views
Not Getting Response while initiating Session on Net::SNMP while accessing the device with snmpv3 credentials using AES-256
I am facing issue with accessing the device with snmpv3 users with AES-256 credentials.
initiating the session with below arguments
($session, $error) = Net::SNMP->session(%args);
When I am ...
1
vote
0
answers
269
views
How to get the error/reason behind "make test -- NOT OK" in Perl CPAN?
I'm on Windows 10, MSYS2 console; and I try to do this:
$ cpan CPAN::DistnameInfo
Loading internal logger. Log::Log4perl recommended for better logging
Reading '~/.cpan/Metadata'
Database was ...
6
votes
1
answer
87
views
Is there a way to have dependencies defined by OS in a CPAN distribution?
I'm working on a CPAN distribution that can work on Win32 and *nix. However, in order for it to work on Win32, it requires another CPAN distribution (module) that can only be installed on Win32.
The ...
3
votes
2
answers
94
views
Makefile.PL meta.json prereqs for OS so module won't be installed on Windows
I'm working on a Perl Module which won't run on Windows, to prevent CPAN Testers failing it on Windows I want to use the meta files in the distribution generated from the Makefile to prevent the ...
1
vote
2
answers
528
views
My Perl can't find local::lib after upgrading from Perl 5.14 to 5.28
I have been running a purchased Perl script for over 15 years. I have been upgrading it fairly regularly, until the developer abandoned it about 5 years ago. I have some VERY basic knowledge, and ...
1
vote
1
answer
62
views
How can I tell who installed which CPAN module and when on Centos 6?
I have seen some issues with CGI version being updated to v4.51 in CentOS 6.8 machine. I can check the version of CGI using:
perl -MCGI -e 'print $CGI::VERSION ."\n";'
But, I am more ...
0
votes
1
answer
398
views
LWP::Simple 6.53 fails to install
I am installing VEP:
perl INSTALL.pl
During the download of cache file, interruption occured at:
downloading ftp://ftp.ensembl.org/pub/release-103/variation/indexed_vep_cache/...
1
vote
0
answers
105
views
Module is not installing in cpan in local path
I am trying to install Getopt::Long::Subcommand module on my account on a cluster local folder on cpan. First i set the local path to cpan by following bellow steps.
o conf makepl_arg 'PREFIX=/home/...
5
votes
1
answer
114
views
Cannot install Test::File on Perl 5.32.0 MacOS Sierra
I'm attempting to install DateTime on my perlbrew 5.32.0, but the tests for its dependency Test::File are failing. The important part is as follows:
t/owner.t ..................... # File [blib] ...
2
votes
0
answers
207
views
CPAN fails installing module Math::Pari (fetching GP/PARI)
I'm on linux (debian buster) and currently trying to install the perl module 'Crypt::Random' which has a dependency to 'Math::Pari':
/usr/bin/perl -MCPAN -e 'install Crypt::Random'
This fails when it ...
1
vote
1
answer
240
views
Cant install Net::Pcap with cpan/cpanm on Linux
I am trying to install the module Net::Pcap. Here is what I have done:
[nick@void ~]$ cpanm Net::Pcap
--> Working on Net::Pcap
Fetching http://www.cpan.org/authors/id/S/SA/SAPER/Net-Pcap-0.18.tar....
3
votes
1
answer
93
views
Perl not recognizing module / module path for root user
I am new to Perl so please bear with me. Thank you for your assistance.
I have an Ubuntu machine with Perl on it. I followed the local::lib bootstrapping guide
I used cpanm to install DBI and other ...
1
vote
1
answer
624
views
Perl: "Install" a custom module from a local .pm file into the Perl execution environment?
Perl newbie here with very little time and support to learn Perl but all the expectations from management to use it like a Perl Pro :)
I am using Perl (v5.30.2 by Larry Wall) under Cygwin (windows 10)
...
6
votes
1
answer
1k
views
latexindent: trouble installing File::HomeDir, Mac::SystemDirectory since macOS 11 Big Sur
Before I begin, I should note that I never had this problem on macOS 10.15 Catalina, and the responses in this similar thread did not solve the problem, unfortunately.
I'm experimenting with ...
1
vote
1
answer
271
views
Missing Devel::Peek module
My Perl has a missing Devel::Peek nodule.
# cpanm B::COW
--> Working on B::COW
Fetching http://www.cpan.org/authors/id/A/AT/ATOOMIC/B-COW-0.004.tar.gz ... OK
Configuring B-COW-0.004 ... OK
==> ...
1
vote
1
answer
41
views
What is the purpose of the $AUTHORITY variable in a Perl CPAN distribution?
According to Dist::Zilla::Plugin::Authority :
This plugin adds the authority data to your distribution. It adds the
data to your modules and metadata. Normally it looks for the PAUSE
author id in ...
3
votes
1
answer
611
views
(Windows 10) Trying to Install Perl Modules both PPM and CPAN fail?
Currently running strawberry perl (latest release fresh install) on windows 10
This is what I get when I try running PPM
PS C:\> ppm
Attempt to reload Compress/Raw/Zlib.pm aborted.
Compilation ...
1
vote
1
answer
628
views
Cannot install Net::SSLeay using CPAN: /bin/sh: x86_64-apple-darwin13.4.0-clang: command not found
I am trying to install Net::SSLeay using CPAN. I am working on a mac and openssl is installed, it is giving me the error: /bin/sh: x86_64-apple-darwin13.4.0-clang: command not found. This was during a ...
2
votes
1
answer
406
views
Installing imagemagick perlmagick on Windows Strawberry Perl
Has anyone had any success recently installing imagemagick/perlmagick on Windows with recent versions of strawberry perl? I have read and tried many of the things suggested that I found online however ...
1
vote
1
answer
48
views
Installing local module + submodules using cpanp
I have the following project structure:
A/
|- B.pm
|- B/
|- one.pm
|- two.pm
|- three.pm
in B.pm I have:
package A::B;
use A::B::one;
use A::B::two;
use A::B::three;
Now, I'm trying to install ...
1
vote
1
answer
137
views
Error: IO::Pipe: Cannot exec: No such file or directory
I'm new to Docker and Perl.
I want to dockerize my perl application but I get following error at runtime:
Error: IO::Pipe: Cannot exec: No such file or directory
Here is my Dockerfile:
FROM ubuntu:18....
1
vote
1
answer
944
views
How to exit current CPAN module and open a new session?
I am new to perl and CPAN. I see that perl is installed in my system.
However, I would like to install DBI package to run a script called INSTALL.PL.
When I type CPAN, I get the below error message
...
-1
votes
1
answer
90
views
(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: /Users/...
0
votes
1
answer
255
views
CPAN "." is not recognized as an internal or external command - Windows 10
Trying to install PAM module on Windows 10 machine. currently not having much luck. not sure why I'm getting this error.
cpan> install Authen::PAM
Running install for module 'Authen::PAM'
Checksum ...
1
vote
1
answer
191
views
perl cpan installation conflicts with GIT Perl cpan installation how can I correct?
I'm new to perl, but, I'm just trying to install it on my windows 10 machine, because, I need to use a NAGIOS plugin named check_logfiles. A perl script/app.
while I am installing Strawberry Perl, I ...
1
vote
0
answers
751
views
Problem installing Tk module perl in MacOS catalina
I got the following errors while installind Tk module from perl in MacOS catalina 10.15.6
cpan install Tk
And the error I get
Cannot find '/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE/...
0
votes
1
answer
328
views
Can't Install Net::Amazon::S3
I'm having troubles installing the Net::Amazon::S3 package for perl on my Win 10 machine running 32 bit Strawberry Perl.
I try to install the package with cpanm:
λ cpanm Net::Amazon::S3
--> Working ...
2
votes
2
answers
265
views
What does the command "cpan reports" do exactly?
I tried to install Moose in perl 5.32.0 with the command cpan install Moose. The installation failed, with the following message:
Result: FAIL
Failed 448/478 test programs. 12/30 subtests failed.
...
1
vote
1
answer
206
views
"recipe for target 'pm_to_blib' failed" when installing CPAN modules (Text::CSV, Tie::RegexpHash, Log::Log4perl)
New Computer
Windows 10.0.17763
ActivePerl 5.28
MinGW (downloaded July 2020)
Installing with Admin privileges
When I try to install Text::CSV (required for Text::CSV::Encoded), I get the following ...
11
votes
2
answers
3k
views
Perl CPAN Can't locate CPAN/Author.pm... when trying to install nipe
I'm trying to install "nipe" on my Windows Machine but i get this error code all the time. I have installed Strawberry Perl.
This is the error code:
Can't locate CPAN/Author.pm in @INC (you ...