CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
- Parse::CPAN::Authors - installation failed



Jun 4, 2014, 10:48 AM

Post #1 of 2 (7428 views)
- Parse::CPAN::Authors - installation failed Can't Post


hello and good day

i have tried to install a perl module - but without success.

well - it is - Parse::CPAN::Authors

and i think that i have some issues with the prerequisites of / for perl

see the installation - hmmm guess that there went something wrong

see the usage - i tried to use the module but without success

martin@linux-70ce:~> perl -MCPAN -e shell

Sorry, we have to rerun the configuration dialog for due to
some missing parameters. Configuration will be written to
<</home/martin/.cpan/CPAN/>> requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.

Would you like to configure as much as possible automatically? [yes]

Warning: You do not have write permission for Perl library directories.

To install modules, you need to configure a local Perl library directory or
escalate your privileges. CPAN can help you by bootstrapping the local::lib
module or by configuring itself to use 'sudo' (if available). You may also
resolve this problem manually if you need to customize your setup.

What approach do you want? (Choose 'local::lib', 'sudo' or 'manual')
[local::lib] sudo

Autoconfigured everything but 'urllist'.

Now you need to choose your CPAN mirror sites. You can let me
pick mirrors for you, you can select them from a list or you
can enter them by hand.

Would you like me to automatically choose some CPAN mirror
sites for you? (This means connecting to the Internet) [yes] y
Trying to fetch a mirror list from the Internet
Fetching with LWP:

Looking for CPAN mirrors near you (please be patient)
........................... done!

New urllist

Autoconfiguration complete.

commit: wrote '/home/martin/.cpan/CPAN/'

You can re-run configuration any time with 'o conf init' in the CPAN shell

cpan shell -- CPAN exploration and modules installation (v2.00)
Enter 'h' for help.

cpan[1]> install Parse::CPAN::Authors
Fetching with LWP:
Reading '/home/martin/.cpan/sources/authors/01mailrc.txt.gz'
Fetching with LWP:
Reading '/home/martin/.cpan/sources/modules/02packages.details.txt.gz'
Database was generated on Wed, 04 Jun 2014 16:41:02 GMT
New version (v2.05) available.
[Currently running version is v2.00]
You might want to try
install CPAN
reload cpan
to both upgrade and run the new version without leaving
the current session.

Fetching with LWP:
Reading '/home/martin/.cpan/sources/modules/'
Writing /home/martin/.cpan/Metadata
Running install for module 'Parse::CPAN::Authors'
Running make for L/LB/LBROCARD/Parse-CPAN-Authors-2.27.tar.gz
Fetching with LWP:
Fetching with LWP:
Checksum for /home/martin/.cpan/sources/authors/id/L/LB/LBROCARD/Parse-CPAN-Authors-2.27.tar.gz ok
Scanning cache /home/martin/.cpan/build for sizes
DONE Building L/LB/LBROCARD/Parse-CPAN-Authors-2.27.tar.gz

Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Parse-CPAN-Authors' version '2.27'
Building Parse-CPAN-Authors
./Build -- OK
'YAML' not installed, will not store persistent state
Running Build test
t/pod.t ........... skipped: Test::Pod 1.14 required for testing POD
t/pod_coverage.t .. skipped: Test::Pod::Coverage 1.04 required for testing POD coverage
t/simple.t ........ ok
All tests successful.
Files=3, Tests=43, 1 wallclock secs ( 0.04 usr 0.01 sys + 0.18 cusr 0.02 csys = 0.25 CPU)
Result: PASS
./Build test -- OK
Running Build install
root's password:
Building Parse-CPAN-Authors
Installing /usr/lib/perl5/site_perl/5.18.1/Parse/CPAN/
Installing /usr/lib/perl5/site_perl/5.18.1/Parse/CPAN/Authors/
Installing /usr/share/man/man3/Parse::CPAN::Authors.3pm
Installing /usr/share/man/man3/Parse::CPAN::Authors::Author.3pm
sudo ./Build install -- OK

Failed to read 01mailrc.txt.gz: Datei oder Verzeichnis nicht gefunden at /usr/lib/perl5/site_perl/5.18.1/Parse/CPAN/ line 22.

see the usage - i tried to use the module but without success

use Parse::CPAN::Authors;

# must have downloaded
my $p = Parse::CPAN::Authors->new("01mailrc.txt.gz");
# either a filename as above or pass in the contents of the file
my $p = Parse::CPAN::Authors->new($mailrc_contents);

my $author = $p->author('W');
# $a is a Parse::CPAN::Authors::Author object
# ... objects are returned by Parse::CPAN::Authors
print $author->email, "\n"; #
print $author->name, "\n"; # Leon Brocard
print $author->pauseid, "\n"; # LBROCARD

# all the author objects
my @authors = $p->authors;

what can i do now?


Jun 4, 2014, 12:13 PM

Post #2 of 2 (7419 views)
Re: [dilbert] - Parse::CPAN::Authors - installation failed [In reply to] Can't Post

well in this case i should ( could) have taken this from the

Btw, the Parse::CPAN::Authors module is available as RPM here:

probably the file is include there.

if not: i gotta have to find it and to put it at the right place....


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives