cpan

Net::SSLeay won't install

会有一股神秘感。 提交于 2019-12-01 19:23:07
问题 cpan Net::SSLeay Running install for module 'Net::SSLeay' Running make for M/MI/MIKEM/Net-SSLeay-1.55.tar.gz Has already been unwrapped into directory /root/.cpan/build/Net-SSLeay-1.55-v9rgJp Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible I have installed all libs of this post: install perl module Net::SSLeay through cpan I also tryed to install it manually and during make command I

CPAN module prereqs

流过昼夜 提交于 2019-12-01 19:15:52
I plan on uploading a module to CPAN, shortly. This is the first module I've contributed. I've got the module to what I'd consider a "beta" stage. I'm using ExtUtils::MakeMaker to generate a Makefile through Makefile.PL (I've pasted the contents of it below). The Makefile.PL script has all the prereq modules listed. I'm wondering at which point in the installation process, the prereq modules are installed if they're not present? I'm wondering because I ran Makefile.PL followed by make then make install in a separate environment that's missing some of the prereq modules. However, they were not

Install Perl modules that require customized options via CPAN

前提是你 提交于 2019-12-01 17:56:23
a few times I've come across modules that require custom flags when installing. For example, now I'm stuck at Net::ZooKeeper which requires --zookeeper-include and --zookeeper-lib set. Is there a way I can set these within the cpan shell? Or do I just need to build manually? There's an easy way to "build manually" but still let CPAN handle finding the latest release, downloading, and unpacking for you -- at the cpan shell do look Net::ZooKeeper , or with cpanminus do cpanm --look Net::ZooKeeper , and it'll be fetched and unpacked and then you'll get a shell in the directory it was unpacked

My Perl module from CPAN won't install, what do I do?

余生颓废 提交于 2019-12-01 17:53:01
问题 This is a canonical question for the above problem, inspired by this answer and this question. Please edit and improve it. I'm trying to install a module from CPAN, using the CPAN/cpanm/CPANPLUS client. However, I'm getting build or test errors when I try to install it. What should I do? 回答1: Does it build at all? The first thing to consider is, is your module building at all? If it isn't building, you should check for existing bug reports, file one if necessary, and perhaps try to fix the

My Perl module from CPAN won't install, what do I do?

流过昼夜 提交于 2019-12-01 17:51:28
This is a canonical question for the above problem, inspired by this answer and this question . Please edit and improve it. I'm trying to install a module from CPAN, using the CPAN/cpanm/CPANPLUS client. However, I'm getting build or test errors when I try to install it. What should I do? dsolimano Does it build at all? The first thing to consider is, is your module building at all? If it isn't building, you should check for existing bug reports, file one if necessary, and perhaps try to fix the issue yourself (steps 2 and 3b/3c below). If it builds but tests fail, follow these steps. 1.

“Fatal error: 'EXTERN.h' file not found” while installing Perl modules

China☆狼群 提交于 2019-12-01 15:08:29
问题 While trying to install Perl modules like JSON::XS or YAML::XS, i receive the same error: XS.xs:1:10: fatal error: 'EXTERN.h' file not found I use MacBook, xCode is up to date, everything else that could help is up to date too. Pls send help. 回答1: Since OS X El Capitan, Apple introduced System Integrity Protection which restricts writing to /usr/lib /usr/bin and other sensitive directories (even to root or sudo user) that are used by the installation of Perl bundled with the Operating System.

Perl on MacOS X 10.6.2: GDBM_File missing, how to install or work around?

冷暖自知 提交于 2019-12-01 08:14:20
When I need a Perl module, I typically use CPAN. It works fine. But not this time. I want to use MARC::Charset, but this one uses GDBM_File, and I can't seem to install GDBM_File from CPAN. CPAN finds it all right, but trying to install it, it starts installing the full Perl 5.10.1 distribution. MARC::Charset is a rather old module, so there should be a way to use it from some common Perl version (Mac OS X 10.6.2 has 5.10.0 and 5.8.9 by default). While installing the full blow Perl 5.10.1 is not an option, modifying MARC::Charset to stop using GDBM_File might be one. What would be the best

CPAN installing modules into perl5 instead of site_perl

旧城冷巷雨未停 提交于 2019-12-01 07:39:28
I'm trying to do a temporary install of some cpan modules into a custom folder (/tmp/perl). So I have amending the build install base with... o conf mbuildpl_arg "--install_base /tmp/perl" o conf makepl_arg "INSTALL_BASE=/tmp/perl" Which works fine, the modules get installed into that directory now. I also set PERL5LIB with PERL5LIB=/tmp/perl/lib/5.14.2/:/tmp/perl/lib/site_perl/:/opt/perl/lib/5.14.2/:/opt/perl/lib/site_perl/: Note, this is all just temporary, on a virtual server which will be destroyed. I note that, previously it would install modules into buildpath/lib/5.14.2 or buildpath/lib

Non Perl files that need to be installed with CPAN distribution?

ぃ、小莉子 提交于 2019-12-01 06:44:15
I need to have files installed with my CPAN dist that aren't Perl. Where in the dist should I put them? and what's the best way to reference them from within a module so that I have access to them regardless of users configuration? Well, you're not very clear on what these files are and how they're used, but you're probably looking for File::ShareDir . File::ShareDir only takes care of the run-time access to the files from your module. The way you get the files installed along with your module depends on which install system you use: If you use Dist::Zilla , you use its ShareDir plugin, which

Perl on MacOS X 10.6.2: GDBM_File missing, how to install or work around?

旧城冷巷雨未停 提交于 2019-12-01 06:06:30
问题 When I need a Perl module, I typically use CPAN. It works fine. But not this time. I want to use MARC::Charset, but this one uses GDBM_File, and I can't seem to install GDBM_File from CPAN. CPAN finds it all right, but trying to install it, it starts installing the full Perl 5.10.1 distribution. MARC::Charset is a rather old module, so there should be a way to use it from some common Perl version (Mac OS X 10.6.2 has 5.10.0 and 5.8.9 by default). While installing the full blow Perl 5.10.1 is