cpan

How to use a CPANPLUS autobundle to update a new version of Perl?

。_饼干妹妹 提交于 2019-12-04 01:49:25
I have Perl 5.13.4 with a large collection of installed CPAN modules. I have just compiled Perl 5.14.0. I'd like to install (recompile) all the modules in 5.13.4 into 5.14.0. I can/have generated a bundle of the installed modules with 'cpanp' and the 'b' option; I now have a file ~/.cpanplus/5.13.4/dist/autobundle/Snapshot_2011_05_18_00.pm . What is the command to use in the 5.14.0 version of 'cpanp' that will go through that snapshot bundle and ensure 5.14.0 has all those modules installed? Or, if the combination of cpanp and a bundle isn't the appropriate way to go, what is the easiest way

Can't locate local/lib.pm in @INC at /usr/share/perl/5.14/CPAN/FirstTime.pm

帅比萌擦擦* 提交于 2019-12-03 17:47:50
问题 I am trying to use Perl the first time on my system which is Ubuntu 12.04. I have Perl v.5.14.2 installed. I looked up how to install Perl modules, so I started as follows: $ perl -MCPAN -e shell The wizard started configuring the environment as can be seen here: http://pastebin.com/5hn8vkb5 Though, it stopped in the middle with the following error message: ... Checksum for /home/john/.cpan/sources/authors/id/A/AP/APEIRON/local-lib-1.008009.tar.gz ok ---- Unsatisfied dependencies detected

install perl module Net::SSLeay through cpan

旧时模样 提交于 2019-12-03 17:30:41
问题 I have tried to install Net::SSLeay though cpan to install Email::Send::SMTP::TLS but I am getting the following error. cpan[5]> install Net::SSLeay Running install for module 'Net::SSLeay' Running make for M/MI/MIKEM/Net-SSLeay-1.49.tar.gz Has already been unwrapped into directory /home/ubuntu/.cpan/build/Net-SSLeay-1.49-VDZ57t 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 回答1: On

How do I install deps for CPAN module without installing it?

喜欢而已 提交于 2019-12-03 16:08:47
This is a follow-up to my previous question about developing Perl applications . Let’s say I develop an application as a CPAN module using Module::Install . Now I upload the code to the production server, say using a git push , and I would like to install the application dependencies listed in Makefile.PL . If I simply run cpan . , the thing tries to install the application like a regular Perl module, ie. starts to copy the modules and documentation to standard Perl directories all over the system. Is this the way it’s supposed to be? Do you install the application into the standard Perl

Error while installing DBD::Oracle

江枫思渺然 提交于 2019-12-03 12:45:30
问题 I am trying to install Perl module DBD::Oracle on my RHEL6.1 server. While doing so, I followed following steps: Installation of following RPMs: oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm oracle-instantclient12.1-sqlplus-12.1.0.2.0-1.x86_64.rpm Exporting environment variables export ORACLE_HOME=/usr/lib/oracle/12.1/client64 export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib Installing DBD::Oracle cpan -i DBD::Oracle

How can I use Perl 5 modules from Perl 6?

两盒软妹~` 提交于 2019-12-03 10:39:12
Is the a way to use Perl 5 modules from CPAN from Rakudo Perl 6? For example, how can I use the venerable Perl 5 module, CGI, which hasn't been ported yet, in Perl 6. Update: And what this funky code from some early Perl 6 module: use CGI:from<perl5>; Is the :from<perl5> directive used to evoke some kind of a Perl 5 compatibility layer? Can't seem to find any documentation about it. user7610 Inline::Perl5 Get it from http://modules.perl6.org/ panda install Inline::Perl5 Following example shows how to import and call Perl 5 module Text::Unidecode , "the Unicode transliteration of last resort"

How can I set library and include paths for Makefile.PL for a single installation?

纵饮孤独 提交于 2019-12-03 07:45:43
问题 How can I tell CPAN to give Makefile.PL one specific argument in one specific installation? Specifically. I want to install XML::LibXML , and apt-get installed the library to /usr/lib/libxml2.so.2.6.32 . Makefile.PL has problems with that and tells me: using fallback values for LIBS and INC options: LIBS='-L/usr/local/lib -L/usr/lib -lxml2 -lm' INC='-I/usr/local/include -I/usr/include' If this is wrong, Re-run as: $ /usr/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'

The future of Perl? (Perl 6, employability)

白昼怎懂夜的黑 提交于 2019-12-03 06:53:49
问题 I've found a few related questions, like Python vs. Perl (now deleted) and Is Perl Worth it? (now deleted), but I can't seem to find anything that directly addresses this question. Is there a legitimate future in Perl? I work in a Perl shop right now, and I came from PHP so I see some of the advantages of an arguably "lower" level language when doing things on the server-level, but it seems to me a lot of the tasks in Perl can be performed more quickly in PHP, and SOME ARGUE (subjective, not

Separating configuration data and script logic in Perl scripts

风流意气都作罢 提交于 2019-12-03 06:31:58
I find the following anti-pattern repeated in my Perl scripts: the script contains some machine/setup specific settings which I store in-line as constants in the script whereas the rest of the script is general in nature: #!/usr/bin/perl use strict; use warnings; # machine specific settings at the start of the script. my $SETTING_1 = "foo"; my @SETTING_2 = ("123", "456"); my $SETTING_3 = "something"; # general part of script follows. ... This pattern is somewhat okay when running on one machine, but as soon as I want to distribute the script to multiple machines the trouble starts since I must

Why does installing certain CPAN modules require root privilege?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 04:53:22
I need to install some CPAN modules in a linux box which I do not have the root privilege. The installation of Spreadsheet::WriteExcel goes quite smoothly. But the try to install File::Find::Rule failed with warning "you do not have permissions to install into ....." and hint "you may have to su to root to install the package" I'm puzzled why some CPAN module installation require root privilege while there are others do not ? and If I really want to use the File::Find::Rule in that linux box , is there any work-around solution I can choose ? thanks. Chas. Owens Have you setup CPAN for that