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:
01mailrc.txt.gz - how to get this file - i need it for a module

 



dilbert
User

Jun 11, 2014, 11:52 AM

Post #1 of 5 (5475 views)
01mailrc.txt.gz - how to get this file - i need it for a module Can't Post

hello dear perl experts


01mailrc.txt.gz - how to get this file

while installing the perl module Parse::CPAN::Authors

and i think that i have some issues with the prerequisit
01mailrc.txt.gz


how to get this file? can i get it via console

note i run openSUSE_13.1


(This post was edited by dilbert on Jun 11, 2014, 12:02 PM)


Laurent_R
Veteran / Moderator

Jun 11, 2014, 11:58 AM

Post #2 of 5 (5465 views)
Re: [dilbert] 01mailrc.txt.gz - how to get this file - i need it for a module [In reply to] Can't Post

This is not a Linux expert forum, but a Perl forum.

I would think that the gunzip command should anable you to decompress that file.


dilbert
User

Jun 11, 2014, 12:10 PM

Post #3 of 5 (5453 views)
Re: [Laurent_R] 01mailrc.txt.gz - how to get this file - i need it for a module [In reply to] Can't Post

hello Laurent

many thanks for the reply.

some folks tell that i need this thing: ~/.cpan/CPAN/MyConfig.pm

but how ?

but i will try to get it done as you advice - i try gunzip - with the file

but how to do that ?????











here the story - and what happened untill now....


Code
 
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


and see this one here



Code
 
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>


look forward to hear from you greetings to paris


dilbert
User

Jun 12, 2014, 9:19 AM

Post #4 of 5 (4977 views)
Re: [Laurent_R] 01mailrc.txt.gz - how to get this file - i need it for a module [In reply to] Can't Post

 
found a script that will download 01mailrc.txt.gz for us.
Code:



Code
#!/usr/bin/perl 

use strict;
use warnings;
use Net::FTP;

use constant HOST => 'ftp.cpan.org';
use constant DIR1 => '/pub/CPAN/authors';
use constant FILE1 => '01mailrc.txt.gz';
use constant DIR2 => '/pub/CPAN/modules';
use constant FILE2 => '02packages.details.txt.gz';
use constant FILE3 => '03modlist.data.gz';

my $ftp = Net::FTP->new(
HOST,
Debug => 0,
Passive => 1,
Timeout => 1
);

$ftp->login('anonymous');
$ftp->cwd(DIR1);
$ftp->ascii;
$ftp->get(FILE1);
$ftp->cwd(DIR2);
$ftp->get(FILE2);
$ftp->size(FILE2);
$ftp->get(FILE3);
$ftp->quit;
}


how do you find this!`?
- again thanks for your hints and help.


dilbert
User

Jun 12, 2014, 9:45 AM

Post #5 of 5 (4961 views)
Re: [Laurent_R] 01mailrc.txt.gz - how to get this file - i need it for a module [In reply to] Can't Post

Hello dear linux-experts

i have some consitency-errors within the perl - see below


Code
 
install_cpan_pre.pl

#!/usr/bin/perl

use strict;
use warnings;
use Net::FTP;

use constant HOST => 'ftp.cpan.org';
use constant DIR1 => '/pub/CPAN/authors';
use constant FILE1 => '01mailrc.txt.gz';
use constant DIR2 => '/pub/CPAN/modules';
use constant FILE2 => '02packages.details.txt.gz';
use constant FILE3 => '03modlist.data.gz';

my $ftp = Net::FTP->new(
HOST,
Debug => 0,
Passive => 1,
Timeout => 1
);

$ftp->login('anonymous');
$ftp->cwd(DIR1);
$ftp->ascii;
$ftp->get(FILE1);
$ftp->cwd(DIR2);
$ftp->get(FILE2);
$ftp->size(FILE2);
$ftp->get(FILE3);
$ftp->quit;
}


See how i go on - and what is happening


Code
 
#!/usr/bin/perl

use strict;
use warnings;
use YAML;
use YAML::Dumper;
use Parse::CPAN::Authors;

my $list = '/root/01mailrc.txt.gz';

my $p = Parse::CPAN::Authors->new( $list );
my @authors = $p->authors;

my $dumper = YAML::Dumper->new;
$dumper->indent_width(1);
print $dumper->dump({dump => $p}



some bad things happen



Code
 
martin@linux-70ce:~/perl> perl cpan2.pl
Failed to read /root/01mailrc.txt.gz: no permission at /usr/lib/perl5/site_perl/5.18.1/Parse/CPAN/Authors.pm line 22.
martin@linux-70ce:~/perl>


guess that i have to put the file into another path

this one here: /root/01mailrc.txt.gz:

what do you say?`

 
 


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

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