我想从所有当前安装的模块中创建一个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

以及每个分发的列表。

OTOH我已经成功记录了indexer_reports中的每个文件。

perl -V在this Pastie link上的输出

最佳答案

添加时,我遇到了相同的错误,该错误已解决:

Organize_dists 1

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

关于perl - DPAN创建本地CPAN,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7105420/

10-13 02:48