Questions tagged [cpanm]

cpanm - Manages Perl library dependencies

cpanm

121 questions
5
votes
1 answer

Is it possible to require a git repo in a cpanfile for cpanm?

I am trying to use a cpanfile with cpanm to install a large list of modules. One of the modules, Unicode::String, has a bug on CPAN that the author has only fixed on Github. (https://github.com/msouth/Unicode-String) Is it possible to list the…
Mik
  • 443
  • 4
  • 9
5
votes
1 answer

Error while installing perl module using cpanm

I am using perlbrew and cpanm. Upon doing cpanm Test::More I get the following: --> Working on Test::More Fetching http://10.64.0.7:8002/authors/id/L/LO/LOCAL/Test-Simple-1.001003.tar.gz ... OK Configuring Test-Simple-1.001003 ... OK Building and…
Hamster
  • 680
  • 7
  • 23
5
votes
3 answers

Using cpanm to install Perl modules

Maybe it's a stupid question? If I install a module like File using cpanm File will it install everything under File, like File:Listing etc?
Frank
  • 7,235
  • 9
  • 46
  • 56
4
votes
1 answer

Problems installing perl modules in home directory

We installed Perl (5.26) on our HPC cluster as a module in the modules environment. Because we do not want to install all Perl modules requested by single users on the whole cluster we asked them to install the needed perl modules in one of their…
Fex
  • 322
  • 1
  • 13
4
votes
1 answer

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 cpan -i (although I am concerned that I may have too…
ivo Welch
  • 2,427
  • 2
  • 23
  • 31
4
votes
2 answers

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 difference between these two methods, and do they offer…
Hashim Aziz
  • 4,074
  • 5
  • 38
  • 68
4
votes
2 answers

How to bundle modules for an offline server with cpanm

I would like to do cpanm SomeModule to install SomeModule together with about 10 dependencies, but the target server has no internet access. I do have a very similar development machine (same Perl environment, same Perl version) where cpanm is able…
AnoE
  • 8,048
  • 1
  • 21
  • 36
4
votes
1 answer

Install modules from minicpan with Carton

I've had success getting cpanm to install from a minicpan mirror with cpanm --mirror ~/.minicpan --mirror-only Module::Name But I can't figure out how to do the same with Carton. I'd like to be able to just carton install when I'm offline / on a…
phillipadsmith
  • 364
  • 2
  • 13
3
votes
1 answer

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 modules to my system. I am concerned there may be…
Bix
  • 760
  • 8
  • 22
3
votes
1 answer

Unable to install perl modules via cpanm in conda environments

I'm trying to install perl modules via cpanm inside conda environment with perl installed. The conda environment was build with following definition: name: perl_env channels: - bioconda - conda-forge - defaults dependencies: - perl=5.26 …
vid1998
  • 71
  • 1
  • 5
3
votes
3 answers

How to install perl Kafka::Connection on alpine image

I have a working UBUNTU image with this Dockerfile: FROM perl:5.14 ENV DEBIAN_FRONTEND noninteractive RUN apt-get update -y RUN apt-get upgrade -y RUN apt-get install -y libgd-dev RUN perl -MCPAN -e 'install (Try::Tiny)' RUN perl -MCPAN -e…
Rubber Duck
  • 3,673
  • 3
  • 40
  • 59
3
votes
1 answer

How do I get cpanm to use my local perl5?

I am on a Mac so of course I'm running into this huge problem with perl on the Mac where the OS is trying to protect me and it's a nightmare to install . The solution seems to be "make your own perl instead of using the one with the OS" so I've done…
Eric
  • 5,104
  • 10
  • 41
  • 70
3
votes
1 answer

How do I determine the version of an installed Perl module where $VERSION is not defined?

I need to find the version of Mojo:::Util that's installed on one of my servers, so I can submit an issue on the Mojolicious Github repository. I followed the recommendations on How can I find the version of an installed Perl module? mainly: perl…
Dave Aiello
  • 490
  • 2
  • 16
3
votes
1 answer

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 modules are in bundle/lib/perl5. Which is almost exactly…
theory
  • 9,178
  • 10
  • 59
  • 129
3
votes
1 answer

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 ? CPAN modules ? 3) If so, then can we control its…
Recker
  • 1,915
  • 25
  • 55
1
2
3
8 9