cpan

Using CPAN with a proxy failing after o conf init /proxy/

一曲冷凌霜 提交于 2019-12-18 02:18:22
问题 I have a Linux box in a corporate environment in which web access is gated through a proxy which requires authentication. During a first run of cpan it auto configures everything that it normally does: Autoconfigured everything but 'urllist'. Please call 'o conf init urllist' to configure your CPAN server(s) now! commit: wrote '/usr/lib/perl5/5.10.0/CPAN/Config.pm' Knowing that I have a proxy to navigate, and having read the docs and several pages on the web about proxy and cpan I: cpan[1]> o

How do YOU manage Perl modules when using a package manager?

落花浮王杯 提交于 2019-12-17 05:50:28
问题 A recent question here on SO got me thinking. On most Linux distributions that I tried, some Perl modules would be available through the package manager. Others, of course, not. For quite a while I would use my package manager whenever I needed to install some CPAN module to find out whether a package was available or not and to install it when it was. The obvious advantage is that you get your modules updated whenever a new version of the package becomes available. However, you get in

Cannot force install GD with cpan/cpanm

半城伤御伤魂 提交于 2019-12-14 02:38:47
问题 I have looked and seen similar issues posted but am unable to get GD working. the following error arises with libgd and libpng installed ... clang -c -I/usr/local/include -arch i386 -arch x86_64 -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector -I/usr/local/include -Wformat=0 -Os -DVERSION=\"2.50\" -DXS_VERSION=\"2.50\" "-I/System/Library/Perl/5.12/darwin-thread-multi-2level/CORE" -DHAVE_FT -DHAVE_GIF -DHAVE_ANIMGIF -DVERSION_33 -DHAVE_UNCLOSEDPOLY -DHAVE_FTCIRCLE GD.c

Perl CPAN-style Packaging with no lib/*.pm

不打扰是莪最后的温柔 提交于 2019-12-14 01:26:02
问题 I've got a collection of Perl scripts and a couple XML data files that they depend on which I'd like to distribute. Currently, I've got a shell script which copies bin/* and share/* to a target installation tree. It seems a little clunky, so I'd like to go with something like the standard CPAN way of packaging Perl. Does is make sense to bundle what I've got in a CPAN-style package? I suspect there is nothing wrong with it, but every tutorial I've looked at thinks that lib/Blah.pm is an

Compiling Net::SSL for Strawberry Perl: “openssl/ssl.h: No such file or directory”

旧时模样 提交于 2019-12-13 21:23:40
问题 When I try to install Net::SSL I get the following output. I don't understad it at all. Can anyone point me in the right direction, without getting to techy? C:\Documents and Settings\Administrator>cpan CPAN: File::HomeDir loaded ok (v0.69) cpan shell -- CPAN exploration and modules installation (v1.9205) ReadLine support enabled cpan> install Net::SSL Database was generated on Tue, 14 Aug 2012 14:54:56 GMT Running install for module 'Net::SSL' Running make for N/NA/NANIS/Crypt-SSLeay-0.64

Perl Oauth2 package

半世苍凉 提交于 2019-12-13 14:41:13
问题 What is the best package to do OAuth2 based authentication. I basically need to authenticate using a consumer key and secret key to get a consumer, and use a access token and secret to get a token. And then use the consumer and token to get the client to use to make the request? 回答1: I would recommend CPAN search. I would stick with Net::OAuth2 (which appears to be being actively developed by the same guy that did Net::OAuth very actively), which contains ::Client and ::WebServer classes.

Is there a module that prints a list like `ls -C`?

↘锁芯ラ 提交于 2019-12-13 02:18:30
问题 Is there a module that prints (or helps me printing) a list whose elements are strings (scalars) in a ls -C fashion? Something like the following imaginary program: use strict; use warnings; use Unknown::Module; my $ls = new Unknown::Module (columns => 3); $ls -> print_ls_C qw(abc def ghi jklmnop q rst uv wxy z); The output should then be something like abc jklmnop uv def q wxy ghi rst z 回答1: use Perl6::Form; my $cols = shift || 3; my @list = qw(abc def ghi jklmnop q rst uv wxy z); print form

How can I compare international phone numbers in Perl?

流过昼夜 提交于 2019-12-13 02:15:28
问题 Are there any modules that can help me compare phone numbers for equality? For example, the following three numbers are equivalent (when dialling from the UK) +44 (0)181 1234123 00441811234123 0181 1234123 Is there a perl module that can tell me this? 回答1: The closest I can see on CPAN is Number::Phone which is an active project, and supports UK Phone numbers. It should work for the specific example you give. A few countries are supported. If you've got phone numbers for other countries

How do I install GD for Perl?

你离开我真会死。 提交于 2019-12-12 23:17:20
问题 I tried to install it but it gave an error. I don't know what -lwebp is. $ cpan install GD Loading internal null logger. Install Log::Log4perl for logging messages CPAN: Storable loaded ok (v2.53_01) Reading '/home/Chloe/.cpan/Metadata' Database was generated on Sat, 24 Dec 2016 21:17:02 GMT Running install for module 'GD' CPAN: Digest::SHA loaded ok (v5.96) CPAN: Compress::Zlib loaded ok (v2.069) Checksum for /home/Chloe/.cpan/sources/authors/id/L/LD/LDS/GD-2.56.tar.gz ok CPAN: YAML loaded

Is it possible to add multiple versions of a module to a minicpan index?

空扰寡人 提交于 2019-12-12 19:25:34
问题 I'm setting up a CPAN::Mini mirror and I want to be able to download multiple versions of modules from the mirror. How do I get it to index more that the latest version of modules I inject: $ mcpani -v --add --module Foo --authorid DUMMY --modversion 0.001 --file Foo/Foo-0.001.tar.gz $ mcpani -v --add --module Foo --authorid DUMMY --modversion 0.002 --file Foo/Foo-0.002.tar.gz $ mcpani -v --update such that I can do: $ cpanm -M ~/CPAN Foo@0.001 NOTE: The different versions of the module are