All Questions
56 questions
0
votes
2
answers
100
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 (...
2
votes
1
answer
136
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 ...
1
vote
3
answers
732
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....
2
votes
1
answer
124
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
2
answers
246
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 ...
1
vote
0
answers
292
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 ...
2
votes
1
answer
1k
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
2
answers
458
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
1
answer
491
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
412
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
749
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
==> ...
2
votes
1
answer
5k
views
Perl cpanm: Cannot install DB_File
I am trying to install the Perl package Vcf, which has a LOT of dependencies. One of these dependencies DB_File will not install.
con@VB:~$ cpanm DB_File
--> Working on DB_File
Fetching http://...
1
vote
0
answers
106
views
Using ULMS:Similarity perl - Access denied for mysql user
I'm getting a simple error but I don't know how to solve it.
While performing make test on this perl package (Linux) https://metacpan.org/pod/UMLS::Interface:
DBI connect('umls;...
0
votes
1
answer
5k
views
trouble installing perl module with cpanm
I'm trying to install Vcf.pm from CPAN and am having no luck. Part of the problem is that I can't get cpanm to work.
This is where I started:
https://metacpan.org/pod/release/AJPAGE/Bio-Pipeline-...
1
vote
2
answers
208
views
Is there any way to find available CPAN version programmatically?
I am trying to find CPAN version programmatically, but ends up in failure.
Tried with perl %Config & %ENV, but couldn't find anything there.
my $cpanv = `cpan -v`;
# gives: Loading internal null ...
1
vote
2
answers
2k
views
How to cpan install from a local source [Linux::Inotify2]
Trying to install Linux::Inotify on Fedora Core 6 x86 machine which ends up in failure.
Looks like the kernel which is below 2.6.36 doesn't support IN_EXCL_UNLINK. This causes the issue in ...
1
vote
1
answer
504
views
Installing B::C with cpanm hangs?
When I install B::C with cpanm, it hangs
$ sudo cpanm B::C
--> Working on B::C
Fetching http://www.cpan.org/authors/id/R/RU/RURBAN/B-C-1.57.tar.gz ... OK
Configuring B-C-1.57 ... OK
Building and ...
2
votes
1
answer
236
views
cpanm not finding newer version in local mirror
I created some proprietary Perl modules I can't share so I put them into a local "darkpan" with orepan2. Here is the beginning of 02packages.details.txt.
[~] $ gunzip -c darkpan/modules/02packages....
11
votes
2
answers
2k
views
What is the difference between the core, vendor and site locations in Perl?
I recently ran into some trouble installing some modules and discovered to my surprise that many of the modules that had been installed, have duplicated installations and versions. Trying to track ...
0
votes
1
answer
455
views
Cpanm Ansible with List
Recently been trying to get get Ansible working with Cpanm. I have read
https://docs.ansible.com/ansible/2.5/modules/cpanm_module.html
and been able to install one perl module using the code below:
...
3
votes
1
answer
365
views
How do I convince cpanminus to install modules in lib/ instead of lib/perl5?
I'm installing a bunch of modules listed in a cpanfile into a self-contained directory:
cpanm -L bundle --quiet --notest --self-contained --with-recommends --installdeps .
Afterward, all the ...
1
vote
0
answers
286
views
perl: symbol lookup error: /opt/microsoft/msodbcsql/lib64/libmsodbcsql-11.0.so.2270.0: undefined symbol: SSLeay
I'm building a perl application inside of a docker container based on perl:5.22 which is based on debian:stretch
I have used cpan to install a bunch of perl related packages.
I get the following ...
-1
votes
1
answer
478
views
Building and testing HTTP-Proxy-0.304
I use sudo cpanm to test and install Perl dependencies.
I am stuck on the line
building and testing HTTP-Proxy-0.304
but I cannot continue the compilation.
Of course I made a Perl Makefile.pl to ...
0
votes
1
answer
337
views
wxPerl install on Mac
I've been able to install wxWidgets on my Mac and use wxPython just fine, but now that I'm trying to use Perl, I need to download wxPerl. I tried to install and the install failed, and I'm not sure ...
1
vote
2
answers
5k
views
Which module do I need when I got error info "Can't locate getopts.pl in @INC..."
I run this command in my macOS
$ perl ~/Desktop/blif2cnf.pl
and got this error info:
Can't locate getopts.pl in @INC (@INC contains: /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 ...
5
votes
1
answer
1k
views
Is there a way to configure the default mirror for App::cpanminus (cpanm)?
I am aware you can easily configure cpan to use a specific mirror. However I recently started using cpanm at the advice of a friend, and I can't seem to find a way to set the default mirror without ...
4
votes
1
answer
2k
views
perl carton cpanfile, optional install into main perl environment
I have a carton cpanfile. on servers on which I have sudo, I would be happy to install the latest versions of my modules globally instead.
do I write a script that removes the 'requires' and uses ...
6
votes
2
answers
2k
views
cpanm use custom libs and cflags
On my mac OS X machine Darwin maci 15.6.0 Darwin Kernel Version 15.6.0
I have installed libxml2 and libxslt in following custom directory
/usr/local/MyLibs/libxml2-2.9.2
and libxslt
/usr/local/MyLibs/...
3
votes
1
answer
249
views
Perl .bundle files
On my OSX machine, deep within a jungle of lib directories, I was able to see this
-r-xr-xr-x 1 user users 45700 Feb 01 1:47 LibXSLT.bundle*
1) What are these .bundle files ?
2) Who creates them ? ...
4
votes
2
answers
4k
views
cpan vs -MCPAN - Perl
I'm currently running bash via Cygwin on Windows, and I've come across two different ways to install a Perl module
cpan Name::Module
and
perl -MCPAN -e shell
install Name::Module
What's the ...
2
votes
1
answer
3k
views
Trying to force CPAN to install in specific directory for Strawberry Perl
I have a strawberry perl installation (v. 5.16.3) on a windows production box. I assume that many moons ago, somebody installed it on the C: drive and then just moved it to D:. I don't know, I wasn'...
1
vote
1
answer
83
views
CPAN - Specio::Constraint::Simple install error
Attempting to install Specio::Constraint::Simple, running into the following error:
Can't resolve method "???" overloading "&{}" in package
"Specio::Constraint::Simple" at Specio::Constraint::...
0
votes
1
answer
1k
views
Download XML::LibXML and its dependencies
I want to install XML::LibXML (among others) on a Linux machine with no internet and no root access.
My current solution is to download XML::LibXML and its dependencies from Windows, with strawberry ...
1
vote
0
answers
123
views
install Net::SSH2 with carton
I want to install Net::SSh2 with Carton:
I have locally installed libssh2-1.6.0.
exported all necessary LIBSSH2 variables
export LIBSSH2_INCLUDE=$HOME/lib/libssh2-1.6.0/include
export LIBSSH2_LIB=$...
29
votes
2
answers
20k
views
What is the difference between cpan and cpanm? [duplicate]
What is the difference between the cpan and cpanm commands?
They both seem to install perl modules, so what is the difference?
1
vote
1
answer
606
views
CPANM path not configured correctly
After extracting a fresh copy of Strawberry Perl, I get an error in CPANM.
C:\portable_perl>cpanm --self-upgrade
You are running cpanm from the path where your current perl won't install execut
...
0
votes
1
answer
784
views
Perl modules: step by step installation process
I have a Macbook(pro 2012 model) with the latest OSX version (Yosemite). I realize perl is pre-installed on unix based systems. Now I'd like to install certain perl modules
namely
XML::simple
XML::...
0
votes
2
answers
2k
views
Installing cpan or cpanm modules on a behind-firewall machine with no Internet connection
I've already read related threads like these, but they do not fully capture our situation.
This is on a firewalled machine. No net access. We can ftp files to folders and install modules from there. ...
5
votes
1
answer
5k
views
Why won't cpanm install dependencies?
I'm trying to install PAR from cpanm like so: cpanm App::Packer::PAR, but it's giving me this error:
skipping R/RJ/RJBS/perl-5.22.0.tar.bz2
! Installing the dependencies failed: Module ExtUtils::...
1
vote
2
answers
1k
views
Error while Installing Math::Pari
I'm trying to install Math::Pari module but getting error.
I'm installing on Windows Server 2012R2, I've Strawberry perl v5.18.4.1 32-bit currently installed on it.
Actually Math::Pari is dependency ...
1
vote
1
answer
660
views
Failed to install Proc::Daemon on Ubuntu 14.10
I am trying to install Proc::Daemon on Ubuntu 14.10 (Perl v5.20) :
$ cpanm Proc::Daemon
--> Working on Proc::Daemon
Fetching http://www.cpan.org/authors/id/A/AK/AKREAL/Proc-Daemon-0.20.tar.gz ... ...
12
votes
2
answers
3k
views
CPAN Requirements File
With pip you are able to create a requirements file to specify which libraries to install. Is there an equivalent for perl modules using CPAN?
I came across ExtUtils::MakeMaker, but this seems like ...
8
votes
2
answers
6k
views
CPANM, "Couldn't find module or a distribution Archive::zip"
I am trying to write something in Perl that needs several modules, however this is my first time using Perl and I cannot seem to install one specific module I need, Archive::zip.
I am using perlbrew ...
1
vote
1
answer
682
views
CPAN install into temp directory?
I'm trying to install quite a few modules from CPAN into a temporary directory.
This is purely to place quite a few of them into a directory that I can then create a custom RPM out of. The rpm will ...
2
votes
1
answer
1k
views
How to update perl module with cpanm
I try to install/update Perl module with cpanm. But, it failed for every modules.
for example:
cpanm Config::General
--> Working on Config::General
Fetching http://www.cpan.org/authors/id/T/TL/...
2
votes
1
answer
3k
views
Perl Windows CPANM proxy issue [duplicate]
After solving a few issues, I've Succeeded with CPAN on my Work Windows 7 Machine with DwimPerl via perl -MCPAN -e shell and o conf init /proxy/
ftp:
http: http://192.168.1.1:8080
no:
Username: Chris@...
0
votes
2
answers
586
views
Change cpanminus build directory
How can I change the cpanminus default build and download directory? Its default location is ~/.cpanm .
I already know how to change this in cpan, but I wish to know if this can also be configured in ...
3
votes
2
answers
2k
views
Modules install successfully but cannot be found
I am wondering why I get "Installing the dependencies failed: Module 'Module::Name' is not installed" even when dependency is has been installed. I am using perlbrew and cpanm. Here is an example of ...
0
votes
1
answer
289
views
install Apache::Session::Memcached fail
I use sudo cpanm -v Apache::Session::Memcached to install under Ubuntu 12.04 LTS 64-bit. I'll paste the entire installation message in the bottom. My guess is that it's related to the test but don't ...
0
votes
2
answers
212
views
New Padre on Fedora
When I try to install Padre with cpan (or cpanm)...
bash-4.2$ sudo cpan Padre
...
CPAN.pm: Building P/PL/PLAVEN/Padre-1.00.tar.gz
Found locale ru_RU.UTF-8
Found wxWidgets 2.8.12
Found Wx.pm 0....