cpan

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

天大地大妈咪最大 提交于 2020-02-14 09:44:12
问题 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? 回答1: 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

How can I create a portable strawberry with extra bundled modules?

别等时光非礼了梦想. 提交于 2020-02-02 04:20:10
问题 The portable strawberry perl is a godsend-- I can bundle it into an NSIS installer along with the actual scripts and have the user double click it. However, I'm still having to install CPAN modules that our scripts need, manually on each user's computer. Is there a portable way to 'inject' cpan modules into strawberry perl's portable version? Would it be a good idea to take the portable strawberry on a development machine, install modules via CPAN, and re-zip it for distribution? (I imagine I

I installed a module successfully with CPAN, but perl can't find it. Why?

空扰寡人 提交于 2020-01-26 01:16:25
问题 I installed a CPAN module like this: cpan Acme According to the output, the installation was successful: Running install for module 'Acme' ... All tests successful. Files=2, Tests=3, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.04 cusr 0.00 csys = 0.06 CPU) Result: PASS INGY/Acme-1.11111111111.tar.gz /usr/bin/make test -- OK Running make install Manifying 1 pod document Installing /home/foo/perl5/lib/perl5/Acme.pod Installing /home/foo/perl5/lib/perl5/Acme.pm Installing /home/foo/perl5/man/man3

Strawberry Perl v5.30.0 not able to install Tcl (Windows 10)

大城市里の小女人 提交于 2020-01-24 20:26:05
问题 I downloaded and installed strawberry-perl-5.30.0.1-64bit.msi from strawberryperl.com on my Windows 10 and tried to install Tcl module using cpan, but it fails for missing tclsh. What could be the problem? C:\Strawberry>cpan Tcl Loading internal logger. Log::Log4perl recommended for better logging CPAN: CPAN::SQLite loaded ok (v0.217) Database was generated on Thu, 24 Oct 2019 12:40:15 GMT Running install for module 'Tcl' CPAN: Digest::SHA loaded ok (v6.02) CPAN: Compress::Zlib loaded ok (v2

How to tell CPAN about path to make and cc

限于喜欢 提交于 2020-01-22 19:09:09
问题 Running Perl 5.10 CPAN on Solaris with opencsw.org packages, Makefile.PL from packages can't find the correct path and cc (gcc). I found the path to make and set it to gmake, but I can't find any setting for cc. I thought I once set this in CPAN/Config.pm (or with o config ...) but can no longer find any setting and don't have enough patience to wade through the thicket to figure out where such a basic thing gets set. Does anyone know? 回答1: cpan doesn't need to know where gcc or equivalent is

make adds an 'exec' line to my scripts

ぃ、小莉子 提交于 2020-01-15 10:59:22
问题 I'm trying to build a perl package (module + scripts). My Makefile.PL has the following to include my script EXE_FILES => [ 'bin/somescript1', ], But after installing the script, it adds the following to the beginning of the installed script. eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' if 0; # not running under some shell Why does it do this and can I make it not include that? 回答1: When ExtUtils::Makemaker installs your scripts, it modifies to the shebang line to use the path to the perl you

Problems installing CPAN Modules

我们两清 提交于 2020-01-14 09:38:11
问题 i'm having loads of problem in trying to install CPAN Modules. Using the cpan.exe, I try to install a module with, for example, "install Win32::IE::Mecahnize" but I end up hitting a wall. In the beginning it find dmake.EXE and is okay, but when the install finishes it says dmake.exe is NOT OK, and Dmake.exe Error code 255 , while making 'test-dynamic'. I'm very confused as to what is happening and why its not working?? Help is much appreciated. This is the current error I get: dmake.EXE:

XSLT2.0 processor for Perl?

老子叫甜甜 提交于 2020-01-14 09:31:26
问题 Is there any robust XSLT2.0 processor for Perl? I just tried out XML::LibXSLT and it doesn't support analyze-string, regex, etc. I'm afraid of using XML::Saxon::XSLT2 for my work cause it uses Java and I wouldn't want to add that to my list of dependencies. What library do you guys use for XSL2.0 transformations? Cheers, 回答1: So you're looking for an XSLT 2.0 processor written in Perl? No, you most definitely do not want a pure-Perl XSLT processor. The result would be excruciatingly slow and

Automatically correct Lingua::LinkParser include lib path

对着背影说爱祢 提交于 2020-01-13 13:45:25
问题 I'm building a script that will run on an EC2 instance that will automatically install our required packages and modules. I'm having an issue with Perl module Lingua::LinkParser . During compile it complains LinkParser.xs:5:27: error: link-includes.h: No such file or directory On Ubuntu link-includes.h is provided by package link-grammar and is installed in /usr/include/link-grammar/. However Lingua::LinkParser's Makefile.PL is hard-coded(?) to look in /usr/local/include/link-grammar/. Is

How to test/classify CPAN modules for utf8 correctness

℡╲_俬逩灬. 提交于 2020-01-11 18:50:32
问题 Here is an excellent question and the wonderful tchrist's answer with 7+24+52 advices&comments how to make an perl program utf8 safe. But here is 19k CPAN modules. What is possible to do for differentiating "good" and "bad" ones? (from the utf8's point of view) For example: File::Slurp if you will read the file with #use strict encoding warnings utf8 autodie... etc.... my $str = read_file($file, binmode => ':utf8'); you will get different results based on command line switches, and perl -CSDA