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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



dilbert
User

Jun 4, 2014, 10:48 AM

Post #1 of 2 (4350 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 CPAN.pm due to
some missing parameters. Configuration will be written to
<</home/martin/.cpan/CPAN/MyConfig.pm>>


CPAN.pm 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]
<install_help>

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:
http://www.perl.org/CPAN/MIRRORED.BY

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

New urllist
http://cpan.mirror.iphh.net/
http://cpan.cu.be/
http://dl.ambiweb.de/mirrors/ftp.cpan.org/

Autoconfiguration complete.

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

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


..............................................................DONE
Fetching with LWP:
http://cpan.mirror.iphh.net/modules/03modlist.data.gz
Reading '/home/martin/.cpan/sources/modules/03modlist.data.gz'
DONE
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:
http://cpan.mirror.iphh.net/authors/id/L/LB/LBROCARD/Parse-CPAN-Authors-2.27.tar.gz
Fetching with LWP:
http://cpan.mirror.iphh.net/authors/id/L/LB/LBROCARD/CHECKSUMS
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

CPAN.pm: 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
LBROCARD/Parse-CPAN-Authors-2.27.tar.gz
./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
LBROCARD/Parse-CPAN-Authors-2.27.tar.gz
./Build test -- OK
Running Build install
root's password:
Building Parse-CPAN-Authors
Installing /usr/lib/perl5/site_perl/5.18.1/Parse/CPAN/Authors.pm
Installing /usr/lib/perl5/site_perl/5.18.1/Parse/CPAN/Authors/Author.pm
Installing /usr/share/man/man3/Parse::CPAN::Authors.3pm
Installing /usr/share/man/man3/Parse::CPAN::Authors::Author.3pm
LBROCARD/Parse-CPAN-Authors-2.27.tar.gz
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/Authors.pm line 22.
martin@linux-70ce:~/perl>


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


Code
 
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"; # leon@astray.com
print $author->name, "\n"; # Leon Brocard
print $author->pauseid, "\n"; # LBROCARD

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


what can i do now?


dilbert
User

Jun 4, 2014, 12:13 PM

Post #2 of 2 (4341 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:
http://software.opensuse.org/package...e-CPAN-Authors

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