Questions tagged [cpanm]

cpanm - Manages Perl library dependencies

cpanm

121 questions
449
votes
11 answers

How can I inspect the file system of a failed `docker build`?

I'm trying to build a new Docker image for our development process, using cpanm to install a bunch of Perl modules as a base image for various projects. While developing the Dockerfile, cpanm returns a failure code because some of the modules did…
Altreus
  • 5,759
  • 4
  • 27
  • 27
35
votes
4 answers

ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xdb00080, needed 0xdb80080)

For some reason, whenever I run any Perl module (like cpanm), I've been getting this response: ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xdb00080, needed 0xdb80080) I'm not sure why this is…
javathunderman
  • 1,074
  • 2
  • 13
  • 31
28
votes
2 answers

What is the difference between cpan and cpanm?

What is the difference between the cpan and cpanm commands? They both seem to install perl modules, so what is the difference?
CJ7
  • 22,579
  • 65
  • 193
  • 321
12
votes
2 answers

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 the make file is for each module specifically. I…
DoolAy
  • 247
  • 3
  • 9
10
votes
2 answers

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 where stuff goes in a standard (if there is such a…
not2qubit
  • 14,531
  • 8
  • 95
  • 135
8
votes
4 answers

How do I set up my Dockerfile to use cpanm to install a specific version of a Perl module?

Within my Dockerfile, I am setting up the Perl modules that will be installed when run, like so: RUN ["cpanm", "Carp", "Carp::Heavy", "Class::Data::Inheritable"] However, for one module, I need a specific version of a module, not the latest one. …
Mik
  • 443
  • 4
  • 9
8
votes
2 answers

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 and use the following command to attempt to…
DoolAy
  • 247
  • 3
  • 9
7
votes
1 answer

What is the default path for cpanm to install Perl modules?

Before I use cpanm to install some Perl modules on a "new" (to me) system, I would like to know where they will get installed by default. I don't see any kind of a dry-run option, which is what I'd hoped for. perl -V includes this %ENV and @INC…
Randall
  • 2,859
  • 1
  • 21
  • 24
6
votes
3 answers

Cpanm fails to install any module due to supposed lack of 'make'

I recently installed XAMPP. Everything works great so far, but one thing doesn't let me to rest: I can't get any module via cpanm. The typical install log looks like this: cpanm (App::cpanminus) 1.6005 on perl 5.016003 built for…
ZzZombo
  • 1,082
  • 1
  • 11
  • 26
5
votes
1 answer

Viewing the cpanm error log in Bitbucket pipelines when installing a Perl module fails

I have a BitBucket Pipeline that installs a bunch of Perl modules using cpanm. One of them fails and this is the snippet I can see in the log: Fetching http://www.cpan.org/authors/id/P/PE/PETDANCE/ack-v3.0.2.tar.gz ... OK Configuring ack-v3.0.2 ...…
szabgab
  • 6,202
  • 11
  • 50
  • 64
5
votes
1 answer

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 specifying --mirror http://cpan.metacpan.org on…
Bill
  • 89
  • 9
5
votes
2 answers

Installing perl DBD::mysql fails on Mac Sierra with mysql brew install

Trying to install DBD::mysql on my Mac Sierra computer running mysql v 5.7.17. Getting the following error when trying to install with cpanm install DBD::mysql: Checking if libs are available for compiling... Can't link/include C library 'ssl',…
StevieD
  • 6,925
  • 2
  • 25
  • 45
5
votes
2 answers

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/libxslt-1.1.29 Now I want to use these libs to…
Recker
  • 1,915
  • 25
  • 55
5
votes
1 answer

Why is plenv install-cpanm installing to the wrong location?

Something wacky happened with my plenv setup and I haven't gotten my head around it. plenv install-cpanm % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left…
oalders
  • 5,239
  • 2
  • 23
  • 34
5
votes
1 answer

How to uninstall from `Carton`

I have Carton environment and install modules into ./local/ from cpanfile. But now I do not require some modules and want to remove some. I can remove ./local folder and install modules from scratch but this take a time. I have found this carton…
Eugen Konkov
  • 22,193
  • 17
  • 108
  • 158
1
2 3
8 9