1,210 questions
0
votes
0
answers
33
views
CPAN requires password but I only have a PEM key
I write with a question about using CPAN on my work computer. I fear
something has changed but I am not sure what that is or what to do
about it other than to seek your guidance.
The work computer is ...
0
votes
1
answer
40
views
Update CPAN-2.28 to latest version on Ubuntu docker image
I have a Docker image with Ubuntu and I need to update
CPAN-2.28 to latest version. I tried to run:
RUN apt-get install libyaml-syck-perl libtemplate-perl libwww-perl
RUN perl -MCPAN -e shell
But I ...
-3
votes
1
answer
160
views
CPAN fails when installing Crypt::SSLeay
When I run:
cpan Crypt::SSLeay
I get the next output:
make: *** [Makefile:887: test_dynamic] Error 2
OALDERS/LWP-Protocol-https-6.14.tar.gz
2 dependencies missing (IO::Socket::SSL,IO::Socket::SSL::...
2
votes
1
answer
59
views
h2xs for update to an existing module
About 10+ years ago I created a Perl module by starting with h2xs and building it up from that template. (As suggested by Sam Tregar's book Writing Perl Modules for CPAN.) I had uploaded it to CPAN ...
0
votes
0
answers
121
views
Having issues trying to install a DBD::mysql client for perl on Server 2022
I'm trying to get DBD::mysql installed under strawberry perl. I've been slowly working my way through a number of configuration issues. I've got to the point where I'm trying to run gmake. I'm ...
0
votes
2
answers
246
views
CI: How to speed up step installing perl modules?
In my pipeline I have the following steps:
runs-on: ubuntu-latest
...
- name: install additional packages
# graphics: transfig gnuplot inkscape
# pdf utilities: poppler-utils (...
1
vote
2
answers
498
views
Facing lot of prerequisite packages issues while installing perl-LWP-UserAgent package in oracle linux 9
Tried installing perl-LWP-UserAgent using the perl-libwww-perl-6.53-4.el9.noarch.rpm package and I got an error message:
$ sudo yum install perl-libwww-perl-6.53-4.el9.noarch.rpm
Last metadata ...
1
vote
0
answers
249
views
Perl module ExtUtils::Embed requires itself to be compiled
I have an incomplete Perl 5.16.3 install on a CentOS server for which I don't have administrative rights. I am trying to install ExtUtils::Embed which normally should be part of the Perl install.
So ...
0
votes
1
answer
234
views
Can't install YAML with cpan
I am very new to Perl. I am trying to install some modules with cpan.
Everytime I use install YAML
I get the following
Failed during this command:
RJBS/Test-Deep-1.204.tar.gz : make ...
2
votes
3
answers
2k
views
XML::LibXML not installing on ubuntu 22.04
I'm having trouble installing XML::LibXML with cpan on ubuntu 22.04.
I have installed libxml2 and zlib1g. And CPAN reports that it sees libxml2:
# Compiled against libxml2 version: 21303
# Running ...
1
vote
0
answers
93
views
Postgresql query : how to select a jsonb object having backslash it in and how to remove the backslashes?
We have jsonb objects (which have backslashes in the name)in the database table. Whenever we try to update or delete the jsonb object,
postgresql throws the error.
Names with backslashes in it are ...
1
vote
1
answer
151
views
How to get and keep all perl modules dependencies of a Perl Module
Here is my problem :
I would like to get automatically the dependencies of the XML::Parser module https://metacpan.org/dist/XML-Parser because I need the source for an offline built on multiple ...
0
votes
1
answer
104
views
DBI cpan install fails
Trying to install DBI.pm using
cpan install DBI
under bash-4.2 fails on several linux platforms including raspberrypi.
On a GoDaddy server a lot of commands go well until
gcc -c (many options) Perl....
1
vote
0
answers
84
views
cpan install Sodium::FFI fails
Sodium::FFI is a dependency for something I'd like to use on my Raspberry Pi 4 (running Raspberry PI OS Bullseye) and the instructions said to install it using sudo cpan install Sodium::FFI, but that ...
2
votes
1
answer
189
views
How can I reinstall a partially installed Perl module?
I'm running Strawberry perl on Win7 and somehow the LWP module got deleted from all my lib folders. I tried to restore it with cpanm, but it says that it's installed. Nevertheless, the LWP folders ...
-2
votes
1
answer
2k
views
cpan : command not found on Redhat 9
I want to compile Qt5 on RedHat 9, and when I run the ./configure command, I get the following message:
Can't locate English.pm in @INC (you may need to install the English
module) (@INC contains: /...
0
votes
0
answers
784
views
Error installing perl Tk module using cpan
I am trying to install Tk using cpan I get an error. This is on a PC, Windows 10, Strawberry Perl 5.38.1
Attempting a basic install of the Tk module, everything downloads, makefile runs to a point, ...
3
votes
0
answers
526
views
Issue installing Perl::LanguageServer via cpanm and cpan in WSL 2
Hi I am trying to install the perl::LanguageServer for eventual use in VS CODE. However, I getting errors when running:
sudo cpan install Perl::LanguageServer
I am very lost, it also says in here ...
1
vote
1
answer
534
views
CPAN Install DBD::MariaDB failed on OS X 14
I am using a MacBook 14.1.1 Sonoma M2 chip and want my Perl scripts to talk to my MariaDB database. Installing DBI was no problem. However when trying to install DBD::MariaDB I get the following error:...
1
vote
1
answer
198
views
Installing XML::[email protected] fails with error: ‘__thread’ before ‘static’ in Alien::Libxml2
I have a docker image whose build used to succeed until recently when I started to observe a build failure owing to Alien::Libxml2 and the errors below.
/root/.cpanm/work/1700643185.67/Alien-Libxml2-0....
0
votes
1
answer
283
views
perl can't find modules installed by apt [closed]
I'm trying to build a perl program from source. The program has a Build script which installs all the many dependencies by cpan by invoking perl ./Build installdeps. However, some of the dependencies ...
6
votes
5
answers
983
views
Image::Magick is gone from Perl CPAN - where is it?
I can't find the Perl module Image::Magick anywhere.
It is gone from CPAN.
What happened to it?
Where can I get it?
Is there a problem with CPAN, or with the module?
2
votes
1
answer
421
views
Can't locate perl module
I am trying to run a perl script on a machine using CentOS Linux 7. I have perl 5.36.1. The script uses a program called polymake which has its own copy of perl. I cannot modify that copy of perl. I ...
1
vote
0
answers
485
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 ...
1
vote
3
answers
995
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....
1
vote
1
answer
124
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 coverage (usually located between Bus factor and License on the left hand side) is missing. In my sandbox, I ...
0
votes
2
answers
70
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/...
-1
votes
2
answers
99
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" ...
-1
votes
1
answer
489
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 ...
5
votes
2
answers
2k
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 ...
0
votes
1
answer
198
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)...
2
votes
1
answer
105
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-...
-3
votes
1
answer
105
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....
1
vote
1
answer
870
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/...
3
votes
1
answer
1k
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 ...
1
vote
1
answer
367
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 ...
2
votes
0
answers
275
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 ...
1
vote
1
answer
209
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:...
3
votes
2
answers
5k
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 ...
2
votes
1
answer
163
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 ...
1
vote
1
answer
118
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-...
1
vote
1
answer
277
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
...
7
votes
2
answers
363
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 ...
1
vote
1
answer
404
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::...
3
votes
2
answers
247
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?
2
votes
1
answer
154
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 ...
2
votes
1
answer
175
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 ...
3
votes
2
answers
264
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 ...
4
votes
0
answers
225
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 ...
1
vote
0
answers
120
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 ...