cpan

How can I install Perl module without using CPAN.pm?

南楼画角 提交于 2020-01-11 17:43:05
问题 Is it possible? 回答1: If you download the source code, and read the README file. This will probably tell you you should do perl Makefile.PL make make test make install or perl Build.PL ./Build ./Build test ./Build install 回答2: If you download the source code, it will generally have a Makefile.PL. You run "perl Makefile.PL; make; make test; make install" and it will build and install for you. Obviously if you're not using CPAN.pm, you're going to have to deal with dependencies yourself. Also,

Cannot install GD module on darwin 13.0.1 using cpan

邮差的信 提交于 2020-01-11 09:21:10
问题 I'm having a tough job trying to get GD installed. I'm running a Mas OSX 10.9.2 darwin 13.0.1 When I run this: cpan[1]> install GD perl -MCPAN -e shell I get the follwing error: cpan[1]> install GD Reading '/Users/me/.cpan/Metadata' Database was generated on Sun, 21 Dec 2014 18:53:17 GMT Running install for module 'GD' Running make for L/LD/LDS/GD-2.56.tar.gz Checksum for /Users/me/.cpan/sources/authors/id/L/LD/LDS/GD-2.56.tar.gz ok Scanning cache /Users/me/.cpan/build for sizes .............

CPAN module prereqs

对着背影说爱祢 提交于 2020-01-11 09:19:49
问题 I plan on uploading a module to CPAN, shortly. This is the first module I've contributed. I've got the module to what I'd consider a "beta" stage. I'm using ExtUtils::MakeMaker to generate a Makefile through Makefile.PL (I've pasted the contents of it below). The Makefile.PL script has all the prereq modules listed. I'm wondering at which point in the installation process, the prereq modules are installed if they're not present? I'm wondering because I ran Makefile.PL followed by make then

Perl: With Text::CSV can I write out a hash ref?

自闭症网瘾萝莉.ら 提交于 2020-01-05 07:12:55
问题 I have a Perl script that reads in a CSV file, changes the columns names of the original, adds new ones (output CSV column names are stored in the array, header_line), adds new field values for each row read, and then writes out a new CSV file. Thanks to a comment by @harleypig on my last question, I'd like to use: $csv_i->column_names( @header_line); $row = $csv_i->getline_hr($fh_i) because this lets me easily access row fields using meaningful names rather than magic numbers. For example:

Why will it not install DBI?

守給你的承諾、 提交于 2020-01-05 07:12:32
问题 I have installed XAMPP on windows 10. Running Apache and mySQL, works fine. I was testing Perl, and it worked too. However it can't connect to mySQL, so I tried to install DBI, but neither PPM or CPAN was recognized by DOS. So I installed ActiveState-Perl, and then used CPAN to install DBI, and you can see the result below. Any ideas will help! Thanks!! Reading 'C:\Perl64\cpan\Metadata' Database was generated on Tue, 24 Dec 2019 06:29:03 GMT Running install for module 'DBI' Checksum for C:

PDF::FromHTML - Corrupt file and no output

不问归期 提交于 2020-01-04 09:06:08
问题 Similar to this post PDF::FromHTML creates empty PDF I have the following code $textblob='<html><head></head><body><p>HelloWorld</p></body></html>'; my $output; if(defined($query->param('PDF'))){ my $pdf = PDF::FromHTML->new( encoding => 'utf-8' ); $pdf->load_file(\$textblob); $pdf->convert( # With PDF::API2, font names such as 'traditional' also works Font => 'Arial', LineHeight => 10, Landscape => 1, ); $pdf->write_file(\$output); print $output; } In Firefox this simply gives me an empty

CPAN Requirements File

二次信任 提交于 2020-01-02 01:21:06
问题 With pip you are able to create a requirements file to specify which libraries to install. Is there an equivalent for perl modules using CPAN? I came across ExtUtils::MakeMaker, but this seems like the make file is for each module specifically. I guess to try and give a better idea of what I am asking is if there is a way to do something like cpan install -r requirements.txt and then specify which modules to install in that requirements file. Thanks in advance! 回答1: I think Carton is what you

Perl IPTables Module Installation Error

我是研究僧i 提交于 2019-12-31 06:47:12
问题 I've been trying to install the IPTables module for perl http://metacpan.org/pod/IPTables::IPv4 and I've been running into errors during installation. I've tried installing using the CPAN in shell as well as downloading the tarball form the link above. Both installation give me errors. I am not sure how to get the dump from CPAN but what I can get is a dump of my shell when I run the MAKE file from the tarball: [root@localhost IPTables-IPv4-0.98]# make make -C libiptc/ all make[1]: Entering

Distributing a Perl Application

随声附和 提交于 2019-12-30 05:09:08
问题 I recently created a little Perl application that utilizes a few non-core modules that will need to be installed via CPAN. Is there a way to distribute the application with the ability to check to see if the required modules are installed and pull them from CPAN if they aren't? I suppose I am looking for something similar to the CPAN auto-dependency-install feature. I thought about using module-starter and Module::Install to create a module-like directory structure and then tailor the Build

Installing PERL CPAN modules in local directory

假如想象 提交于 2019-12-30 00:14:07
问题 i have a 1and1 hosting account and would like to install some Perl CPAN modules that are not part of the standard host package. Is it possible to install modules without ROOT access? If so, how do i do that? Thanks for the pointers in advance. 回答1: cpanminus is quickly becoming the choice interface for CPAN. It supports installing packages in to the user's home directory. Its usage is frightening simple. To install the cpanminus package locally: curl -L http://cpanmin.us | perl - App: