cpan

How Can I Install Redis perl library Manually i.e offline.And From Where Can I Get All The Dependencies To Install

末鹿安然 提交于 2019-12-24 20:10:02
问题 I am trying to install check_redis plugin and for that i need redis perl library but i don't have access to CPAN and internet.So Is there any way to install by downloading zip file and all the dependencies.I am using nagios core.Here is the plugin i am trying to install 回答1: Because I had a similar problem at work I happened to write my personal Q&A on this topic. Here it is: Q: How to install CPAN modules without Internet access? A: 1. Install CPAN::Mini on the internet machine: $ cpan CPAN:

How to Print Spelled out month names rather than numbers

青春壹個敷衍的年華 提交于 2019-12-24 17:57:38
问题 How can you get Perl to print names of months rather than their numbers for example: 9 should appear as September. I would like the program below to print names of months rather than their numbers. #!/usr/bin/perl use strict; use warnings; use Date::Easter; print "Please enter a year"; chomp (my $year = <STDIN>); my ($m1, $d1) = easter ($year); my ($m2, $d2) = julian_easter ($year); my ($m3, $d3) = orthodox_easter ($year); print "Gregorian => Month: $m1 Day: $d1\n"; print "Julian => Month:

Installing Term::TermKey returns error

走远了吗. 提交于 2019-12-24 10:00:33
问题 I have a problem while installing Term::TermKey with CPAN and I can't find information about how to solve it. Here is an output: cpan[9]> install Term::TermKey Running install for module 'Term::TermKey' Running Build for P/PE/PEVANS/Term-TermKey-0.10.tar.gz Checksum was ok '/usr/bin/perl Build.PL installdirs=site' returned status 256, won't make Running Build test Make had some problems, won't test Running Build install Make had some problems, won't install May someone help me? //edit I

cpan XML::LibXSLT failed to install

最后都变了- 提交于 2019-12-24 09:39:29
问题 i tried installing the perl module XML::LibXSLT but it fails. googled for it for hours now but nothing help so i am posting this. Maybe someone can help! Thanks in advance! cpan XML::LibXSLT CPAN: Storable loaded ok (v2.20) Going to read '/root/.cpan/Metadata' Database was generated on Mon, 28 Oct 2013 11:08:37 GMT Running install for module 'XML::LibXSLT' CPAN: YAML loaded ok (v0.84) Running make for S/SH/SHLOMIF/XML-LibXSLT-1.81.tar.gz CPAN: Digest::SHA loaded ok (v5.47) CPAN: Compress:

How do I re-install a cpan-autobundle

♀尐吖头ヾ 提交于 2019-12-24 02:16:32
问题 I'm working with backups at the moment and instead of backing up the full disks it would be much more efficient for me just to backup the configuration of the system. So for the perl-section of things I would like to have a way to list installed modules and later reinstall those modules if needed. I read How do I get a list of installed CPAN modules? about how to get the list and when reading perldoc -l install I found this: You can also use "cpan"'s "-a" switch to create an autobundle file

How do a fix the cpan command when the SQLite index fails?

安稳与你 提交于 2019-12-24 00:58:33
问题 When attempting to use the CPAN command line, I am unable to either reload index or install any modules. There is an error with SQLite. If I disable the use of SQLite, I get a different error. Both are listed below. Has anyone found this problem before? How did you fix it? """WITH SQLITE""" Fetching with LWP: http://cpan.strawberryperl.com/modules/02packages.details.txt.gz Fetching with LWP: http://cpan.strawberryperl.com/modules/03modlist.data.gz Creating database file ... Gathering

NET::SSH::Expect configurations to work over windows

╄→гoц情女王★ 提交于 2019-12-24 00:24:53
问题 Machine details : Windows7 , 64-bits. I integrated perl in eclipse and used Net::SSH::Except module for scripting, but am getting an error as Can't locate Net/SSH/Expect.pm in @INC (you may need to install the Net::SSH::Expect module) (@INC contains: C:/Perl64/site/lib/MSWin32-x64-multi-thread C:/Perl64/site/lib C:/Perl64/lib .) Therefore, Am trying to install IO::Tty for Expect dependency, using command cpan>notest install IO::Tty . i am getting the following error message : and the module

Strawberry Perl - Net::Server test hangs during install

百般思念 提交于 2019-12-23 15:53:25
问题 While installing Net::Server, the tests hang on 4/5, and the install blocks until I send a break signal. I've tried googling, but haven't been able to find anything relevant. I'm using Strawberry Perl 5.12.2 on Windows XP Install output: cpan> install Net::Server Running install for module 'Net::Server' Running make for R/RH/RHANDOM/Net-Server-0.99.tar.gz Has already been unwrapped into directory C:\strawberry\cpan\build\Net-Server- 0.99-lExqFv Has already been made Running make test C:

how to Run 'Build installdeps' to install missing prerequisites

让人想犯罪 __ 提交于 2019-12-23 13:56:29
问题 Trying to run a Build.PL file and get following, and not uncommon error message: Checking prerequisites... build_requires: ! Test::Most is not installed recommends: * HTML::TableExtract is not installed * Math::Random is not installed * YAML is not installed ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions of the modules indicated above before proceeding with this installation Run 'Build installdeps' to install missing prerequisites. however when I run: perl Build

Which module do I need when I got error info “Can't locate getopts.pl in @INC…”

徘徊边缘 提交于 2019-12-23 03:46:19
问题 I run this command in my macOS $ perl ~/Desktop/blif2cnf.pl and got this error info: Can't locate getopts.pl in @INC (@INC contains: /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /Users