Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DPAN to create local CPAN

Tags:

perl

cpan

dpan

I want to make a CPAN repository from all curently installed modules. So I used autobundle to get a list of installed modules. I then used BackPAN::Index to download all the distributions into a directory and then ran dpan in it. It chew them for quite some time and then failed

    MyCPAN::App::DPAN::Indexer 1.28
    Processing 2 distributions
    One * = 1 distribution
    # Extracting with ->_untar_at
    # Extraction succeeded
    +# Extracting with ->_untar_at
    # Extraction succeeded
    ++
    /home/ec2-user/dpan_test/modules/02packages.details.txt.gz-8496-trial has a problem and I have to abort:
    Deleting file (unless you're debugging)
    Some distributions in the repository do not show up in the file
            /home/ec2-user/dpan_test/Moose-1.24.tar.gz
            /home/ec2-user/dpan_test/Moose-Autobox-0.11.tar.gz at /usr/local/share/perl5/MyCPAN/App/DPAN/Reporter/Minimal.pm line 439
Some distributions in the repository do not show up in the file

and list of every distribution follows.

OTOH I have a success logged for every file in the indexer_reports.

Output from perl -V on this Pastie link

like image 774
jira Avatar asked Nov 05 '22 16:11

jira


1 Answers

I suffered the same error it was resolved when I added:

organize_dists 1

Though when trying attempting to install from the mirror CPAN fails as no 01mailrc.txt.gz file can be found. This can be overcome by copying the file from say http://www.perl.org/CPAN/authors/01mailrc.txt.gz into the new mirror's authors directory

like image 101
Stephen S Avatar answered Nov 09 '22 07:11

Stephen S