我试图用纸箱作为部署容器.但是我遇到了一个小问题.我不知道,如何安装私人模块.
创建了一个快速测试模块:
h2xs -AX Foo::Bar tree Foo-Bar/ Foo-Bar/ ├── Changes ├── lib │ └── Foo │ └── Bar.pm ├── Makefile.PL ├── MANIFEST ├── README └── t └── Foo-Bar.t
包装它:tar cvfz Foo-Bar-0.01.tar.gz Foo-Bar /
将包复制到vendor / cache目录.
ls vendor/cache/ Foo-Bar-0.01.tar.gz Try-Tiny-0.18.tar.gz cat cpanfile requires 'Foo::Bar','0.01'; requires 'Try::Tiny','0.18'; carton install --cached Installing modules using /home/donpedro/Garbage/Carton/cpanfile ! Couldn't find module or a distribution Foo::Bar (0.01) Successfully installed Try-Tiny-0.18 ! Installing the dependencies Failed: Module 'Foo::Bar' is not installed ! Bailing out the installation for /home/donpedro/Garbage/Carton/. 1 distribution installed Installing modules Failed
尝试了一个Milla默认模块(教程示例,milla新Dist-Name),但没有结果.文档提到对于DarkPan模块,只需将模块放入供应商/缓存目录中,我正在尝试这样做.
官方CPAN模块可以直接放入供应商/缓存目录中.
接下来要尝试什么或如何解决我的问题? 原文链接:https://www.f2er.com/Perl/171584.html