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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
41 views

perl mcpan fails with certificate errors

I'm using perl 5.36.0 installed with perlbrew (yes, I need to use that version) but can't install any modules due to certificate errors like below Loading internal logger. Log::Log4perl recommended ...
user2913094's user avatar
1 vote
3 answers
104 views

docker build fails when running cpanm

In docker container I have a perl script and I need to be able to parse json I tried to have CPAN JSON installed for perl in my Dockerfile. So I am doing the following in my Dockerfile FROM centos:7.9....
Jim's user avatar
  • 3,877
0 votes
0 answers
62 views

Test coverage missing after upload of perl module to CPAN

After upload of a module to CPAN all testing reports are positive. Nevertheless the test coverate (usually located between Bus factor and License on the left hand side) is missing. In my sandbox I do ...
Jurij's user avatar
  • 1
0 votes
2 answers
52 views

Cannot install Webservice::InterMine

I'm attempting to install Webservice::InterMine on Ubuntu 22.04 and perl 5.38.0, but I get the following error: Loading internal logger. Log::Log4perl recommended for better logging Reading '/home/con/...
con's user avatar
  • 5,767
-1 votes
2 answers
74 views

Remove entries with specific keys from an XML file in Perl

I have XML files that look like this: <?xml version="1.0" encoding="UTF-8"?> <!-- some comment here --> <rsccat version="1.0" locale="en_US" ...
Kautuk Raj's user avatar
0 votes
0 answers
23 views

Django hosted with cPanel crashes shortly after I change an object in models

I am working on a react-native app with Django backend. I recently deployed the Django app with cPanel. When I do an action in the app that updates or makes an object in models and then I do something ...
Itay Lador's user avatar
-2 votes
1 answer
181 views

Install perlcritic on macOS Ventura

I'm on macOS Ventura 13.3.1 and I'm trying to get perlcritic working. perl --version Gives me: This is perl 5, version 36, subversion 0 (v5.36.0) built for darwin-thread-multi-2level ... When I ...
baduker's user avatar
  • 19.2k
5 votes
2 answers
536 views

Install & update a Perl module as "universal" (x86_64, arm64)?

Is is possible to install and update Perl (CPAN) modules with universal (x86_64, arm64) architecture support? If yes, then how? background On an arm-based macOS computer, a Perl CPAN module can be ...
marc-medley's user avatar
  • 8,961
0 votes
1 answer
55 views

dockerfile - cpan proxy configuration

I am creating a docker image via dockerfile. ... RUN dnf install -y cpan perl perl-core perl-App-cpanminus make RUN cpan Config::Properties ... I require to install a CPAN library (Config::Properties)...
MKB's user avatar
  • 7,589
2 votes
1 answer
66 views

connect to a remote host in perl and run ssh commands as a root user

I am trying to connect to a remote host as a user. Now i want to run a few commands that need sudo access. The commands are: export http_proxy=http://xxxx.xx.xx.com:8080 export https_proxy=http://xxxx-...
Daksha's user avatar
  • 21
-3 votes
1 answer
57 views

error while installing DBD::oracle in windows10 `perl -MCPAN -e "install DBD::Oracle" [closed]

Fetching with LWP:http://cpan.strawberryperl.com/authors/01mailrc.txt.gz LWP failed with code[470] message[status code 470]Warning: no success downloading 'C:\STRAWB~1\cpan\sources\authors\01mailrc....
Shrishti Sharma's user avatar
1 vote
1 answer
183 views

cannot install a certain module on google-collab

i try to install the module on the Google-Colab - but it does not work !cpan install CPAN::Authors Output: Loading internal logger. Log::Log4perl recommended for better logging Reading '/root/.cpan/...
malaga's user avatar
  • 329
2 votes
1 answer
150 views

cpan not using configured repo instead trying to connect to cpan.org when installing perl modules

I have installed perl and cpan in an automated shell script. configure only one local repo from the script itself as below: echo o conf urllist https://localrepo.mylab.mycompany.com/cpan echo o conf ...
Raghavendra J's user avatar
1 vote
1 answer
88 views

Cannot build Perl libgd on Mac Perlbrew environment

I was using Mac OS 12 and Perlbrew with Perl 5.36. When I install GD using either CPAN or cpanm I get the following error: cpanm (App::cpanminus) 1.7046 on perl 5.036000 built for darwin-2level Work ...
thran's user avatar
  • 147
0 votes
0 answers
58 views

How install TCOD::Key with Straberry perl (windows 10)

I have got Strawberry perl with windows 10. Using cpan I try to install TCOD::Key. The problem is the libtcod.h file is absent. I do not understand how install the libraria. D:\Documents>cpanm --...
marksianec's user avatar
2 votes
0 answers
105 views

Perl Net::DNS version 1.35 resolver query fails [closed]

I am trying to test out the new version of cpan-Net-DNS (version 1.35) and it fails in the Net/DNS/Resolver/Base.pm file at line 987 with the following error. *** FATAL PROGRAM ERROR!! Unknown ...
user1712584's user avatar
1 vote
1 answer
94 views

error when installing module Text::Unaccent

trying to install the Text::Unaccent module I have next error, Can someone help ? C:/Strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/8.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: Unaccent.o:...
Jean-Luc's user avatar
3 votes
1 answer
858 views

cpan fails because it can't verify cpan.org's SSL certificate

I upgraded perl from perl 5.18.2 to perl 5.36.0, and now many modules are missing. When I try to install the module using CPAN, I am getting errors. For ex: cpan YAML::XS It gave me the following ...
Kamakshi Trivedi's user avatar
2 votes
1 answer
55 views

Error when installing List-SomeUtils from cpan

I seem to get an error when trying to install from cpan cpan List::SomeUtils Perl v5.14.2 I have also downloaded direct from metacpan and doing a perl Makefile.pl and make but make test fails with ...
Ian's user avatar
  • 13.7k
1 vote
1 answer
80 views

"Can't locate Parse/Pidl/IDL.pm" while installing Parse::Pidl

I'm having an error trying to install Parse::Pidl module with cpan. It seems that within the downloaded archive Parse-Pidl-0.02.tar.gz is missing the IDL.pm module (I think it should be within Parse-...
ulix's user avatar
  • 274
1 vote
1 answer
199 views

Perl modules not installing. sh: 1: gzip: Exec format error

I am getting issues when trying to install Perl modules on Ubuntu running on Windows 10. I am not sure the best way to post the output, I am guessing maybe as "code" $ cpan HTTP::Tiny ...
Matt Williams's user avatar
7 votes
2 answers
236 views

Do all my perl module .pm files need a `$VERSION` definition?

I just added a new file to the PDL::IO::Touchstone distribution and noticed that CPAN's indexer says version is undef since $VERSION is missing: module : PDL::IO::MDIF version: undef in ...
KJ7LNW's user avatar
  • 1,435
1 vote
1 answer
144 views

Perl Devel::REPL re.pl command not found

Is there any instruction on installing Devel::Repl? I use cpan Devel::REPL command to have it installed but I cannot launch it using the re.pl command (as suggested https://metacpan.org/pod/Devel::...
whyuenacccc's user avatar
3 votes
2 answers
141 views

Using Dist::Zilla dist.ini how can I have files that I only use for testing?

In a Dist::Zilla-based distribution I would like to have some files that are only used for testing, but do not get installed. These are mockup libs that aren't needed for runtime. How do I do that?
simone's user avatar
  • 4,677
2 votes
1 answer
61 views

Using Dist::Zilla dist.ini how can I set alternate dependencies?

I am building a module that could work with Mojo::SQLite or Mojo::Pg indifferently. How do I handle the dependencies? I've checked Mojo::DB::Results::Role::Struct which works in the same way, and it ...
simone's user avatar
  • 4,677
2 votes
1 answer
105 views

How do you test your Perl module to check if Makefile.PL declares all dependencies?

I would like to write a t/00-check-deps.t module to find all dependencies in MyModule.pm and make sure they exist in Makefile.PL before release. This way when I do make test before distributing to ...
KJ7LNW's user avatar
  • 1,435
3 votes
2 answers
87 views

Is there an automatic way to build the "Changes" file from `git log` when publishing a perl module?

This is a perl-module specific question: I already have my history and version tags in git so it would be nice to sync ./Changes with git log just before publishing the module update. Specifically I ...
KJ7LNW's user avatar
  • 1,435
4 votes
0 answers
118 views

Can't install some POE perl module in Strawberry Perl

I've inherited a Perl project that uses a number of Perl modules. I've been trying to set up the environment, but it's been a nightmare. I'm now on day two of just trying to install the modules. The ...
Bill de Haan's user avatar
1 vote
0 answers
90 views

Implicit declaration of function is invalid error for Perl module install on macOS Monterey

I'm trying to install the Text::Unaccent module for Perl (5.30.3) using cpan (1.64) on macOS Monterey 12.4 but I'm getting 12 warnings and 1 error: Unaccent.xs:109:10: error: implicit declaration of ...
RTF's user avatar
  • 6,214
1 vote
2 answers
161 views

Cpan Install - No Bareword Allowed (windows)

I've inherited a project in Perl - an environment I know very little about. Nobody else knows anything about it either and nobody knows how to even get it running natively. So the project is developed ...
Josh Dredge's user avatar
-1 votes
1 answer
128 views

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 ...
Adrian's user avatar
  • 10.3k
2 votes
1 answer
258 views

Can't use an array as a reference when installing perl module

edit: worked with sudo cpanm Data::Match --force I'm trying to install the "Data::Match" perl module with ubuntu 18.04. I use: perl Makefile.pl make make test And I get the following error: ...
Roni Weiss's user avatar
1 vote
0 answers
231 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 ...
Indiano's user avatar
  • 684
1 vote
0 answers
125 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'...
Arevik's user avatar
  • 31
1 vote
1 answer
172 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 ...
Yvain's user avatar
  • 261
1 vote
0 answers
152 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 ...
Louis's user avatar
  • 19
1 vote
2 answers
662 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 ...
Richard Thomas's user avatar
1 vote
1 answer
158 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 ...
matthew hill's user avatar
1 vote
2 answers
353 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 ...
Daniel Schreurs's user avatar
2 votes
1 answer
750 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 ...
Terry's user avatar
  • 1,216
2 votes
0 answers
316 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, ...
ItsPrinceAk's user avatar
1 vote
1 answer
137 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::...
con's user avatar
  • 5,767
1 vote
0 answers
548 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 ...
cplaiuu's user avatar
  • 163
1 vote
2 answers
339 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/...
Timur Shtatland's user avatar
1 vote
0 answers
226 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 ...
Squirrel's user avatar
1 vote
2 answers
513 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 ...
Stewart Russell's user avatar
0 votes
1 answer
671 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 '/...
Sumito's user avatar
  • 47
18 votes
1 answer
460 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?
Zsolt's user avatar
  • 304
5 votes
1 answer
294 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::...
psiz's user avatar
  • 69
2 votes
1 answer
303 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::...
heimi's user avatar
  • 499

1
2 3 4 5
24