cpan

How can I install `Thread::Pool` from CPAN?

旧城冷巷雨未停 提交于 2019-12-12 16:45:14
问题 I'm using cpanm to install Perl modules, but I can't install Thread::Pool for some reason: $ sudo cpanm Thread::Pool fails and the log file says: cpanm (App::cpanminus) 1.0012 on perl 5.010001 built for i486-linux-gnu-thread-multi Work directory is /home/dave/.cpanm/work/1284831891.13606 You have make /usr/bin/make You have LWP 5.834 You have /bin/tar: tar (GNU tar) 1.22 Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl

How can I install Perl modules on a restricted server?

馋奶兔 提交于 2019-12-12 14:40:16
问题 I have a server that I can ssh into but that's it. Otherwise it is totally closed off from the outside world. I'm trying to deploy some scripts I wrote to it but they have several Perl dependencies (Params::Validate, XML::Simple, etc.) I can't get them via yum since our satellite server doesn't have those packages and the normal CPAN install won't work either since the host is so restricted. Moving the module sources over and compiling is extremely tedious. I've been doing that for over a day

Config file handling in Perl

不想你离开。 提交于 2019-12-12 10:35:09
问题 There are plenty of Modules in the Config:: Namespace on CPAN, but they are all limited in ond way or another. I'm currently using Config::Std, which is fine most of the time, however it makes certain things difficult: more than two levels of nested directives handling of multiple values per key conf.d directories, i.e. multiple config files which are merged into one big config hash Config::Std generates a blessed hashref after parsing the config, so all my applications are coded to use a

Perl: CPAN - Module modifying and adding functionality

筅森魡賤 提交于 2019-12-12 09:52:20
问题 I find a module, that I want to change. My problem have some features like this: I want to add functionality and flexibility to this module. Now this module solves tasks, but web-service, for what it was written, change API And also, I want to use code of this module. It is not my module Fix some bugs How i should be in this situation? Inheriting from this module and add functionality and upload to CPAN? Ask author about my modifications (and reload module)? Something else? 回答1: There are

Module installed with cpan isn't showing up

有些话、适合烂在心里 提交于 2019-12-12 04:38:12
问题 I'm trying to install Array::Iterator and Text::ParseWords using cpan. I'm on OSX with cpan v1.61 and perl v5.18.2 . When I start up cpan, after the initial configuration, I type install "Array::Iterator" and it seems to install correctly. But when I try to run my perl script with use Array::Iterator , I get: Can't locate Array/Iterator.pm in @INC (you may need to install the Array::Iterator module) (@INC contains: /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network

CPAN - yaml_process_error

為{幸葍}努か 提交于 2019-12-12 02:41:34
问题 Hi i've been trying to search for a fix to this but i cant find one. All im trying to do is update my perl modules using cpan[1]> upgrade How ever i get the following error. Catching error: "CPAN::Exception::yaml_process_error=HASH(0x7fd8f39971f8)" at/Library/Perl/Updates/5.16.2/CPAN.pm line 392. CPAN::shell() called at /Library/Perl/Updates/5.16.2/App/Cpan.pm line 338 App::Cpan::_process_options('App::Cpan') called at /Library/Perl/Updates/5.16.2/App/Cpan.pm line 421 App::Cpan::run('App:

Openssl upgrade in Strawberry Perl

假如想象 提交于 2019-12-12 01:38:06
问题 I want to ask that how can I upgrade the Openssl version from 0.9 to 1.0.* in Strawberry Perl version 5.10.*? PS: I do not want to upgrade the strawberry perl version as well as I am using windows environment. Thanks! 回答1: Note, also asked, answered on Perlmonks. As far as I know, you can't simply upgrade OpenSSL within a Strawberry installation. Also, Perl 5.10 was released way back in 2007, so it's probably best you upgrade the whole shebang anyways. berrybrew for Windows offers you a way

Devel::CheckLib syntax errors when trying to install Tree::Suffix

我与影子孤独终老i 提交于 2019-12-11 23:24:55
问题 I'm trying to install the Tree::Suffix module from CPAN on a Debian testing system, with Perl 5.18.1 installed. During compliation, I get a bunch of syntax errors and warnings, related to Devel::CheckLib. CPAN.pm: Building G/GR/GRAY/Tree-Suffix-0.21.tar.gz syntax error at inc/Devel/CheckLib.pm line 164, near "$mm_attr_key qw(LIBS INC)" syntax error at inc/Devel/CheckLib.pm line 171, near "}" Global symbol "%args" requires explicit package name at inc/Devel/CheckLib.pm line 175. syntax error

Installing XML::DOM module fails

对着背影说爱祢 提交于 2019-12-11 20:19:11
问题 I couldn't find any solution for two weeks.!!!! I try to install CPAN Modules using the cpan.exe. When I try to install a module with "install XML::DOM" fails stating dmake.exe is NOT OK, here is my error: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\ehsan\Documents>cpan Set up gcc environment - gcc.exe (release with patches / build 20130526 by st berryperl.com) 4.7.3 There seems to be running another CPAN process (pid 5932).

Perl Windows CPANM proxy issue [duplicate]

谁说胖子不能爱 提交于 2019-12-11 13:58:40
问题 This question already has answers here : Using CPAN with a proxy failing after o conf init /proxy/ (3 answers) Closed 4 years ago . After solving a few issues, I've Succeeded with CPAN on my Work Windows 7 Machine with DwimPerl via perl -MCPAN -e shell and o conf init /proxy/ ftp: http: http://192.168.1.1:8080 no: Username: Chris@work Password: SuperDeDuperSecretPassword CPAN works. I'm able to install/build. It seems that no matter what I do, CPANM doesn't want to get past the proxy: C:\