DPAN创建本地CPAN

jir*_*ira 5 perl cpan dpan

我想从所有安装的模块中创建一个CPAN存储库.所以我使用autobundle来获取已安装模块的列表.然后我使用BackPAN :: Index将所有发行版下载到一个目录中,然后在其中运行dpan.它咀嚼了很长时间然后失败了

    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
Run Code Online (Sandbox Code Playgroud)

并列出了每个分布.

OTOH我为indexer_reports中的每个文件都记录了成功.

此Pastie链接上的perl -V输出

小智 1

我遇到了同样的错误,当我添加以下内容时它已解决:

组织分布 1

但尝试从镜像安装时,CPAN 失败,因为找不到 01mailrc.txt.gz 文件。这可以通过将文件从http://www.perl.org/CPAN/authors/01mailrc.txt.gz复制到新镜像的authors目录来解决