2017-02-26 35 views
1

我在Windows上有一個腳本,它使用CPAN中的多個純Perl模塊。 我正在嘗試發送此腳本,而不需要使用App::FatPacker從CPAN重新安裝這些模塊。Windows上的App :: FatPacker

我在Portable Strawberry Perl 5.24上安裝了App::FatPacker(最新版本(0.010007)版本)。

當我運行下面的命令

fatpack pack myscript.pl > myscript.packed.pl 

我得到

syntax OK

但fatlib是空的,當我運行我的腳本失敗。

我試圖用這個腳本,什麼也不做,但負載Geo::IP::PurePerl

use strict; 
use warnings; 

use Geo::IP::PurePerl; 

,並再次運行此命令:

fatpack pack myscript.pl > myscript.packed.pl 

然後我對草莓的另一個實例跑myscript.packed.pl的Perl 5.24,我得到出現以下錯誤:

Can't locate Geo/IP/PurePerl.pm in @INC (you may need to install the Geo::IP::PurePerl module

我試過通過一步

的fatpack跟蹤建設步調試它如預期,包括Geo::IP::PurePerl

創建一個跟蹤列表fatpack packlists,爲成功完成,但fatlib是空的。

有什麼想法?

回答

0

我要說的是,packlists-for沒有找到任何.packlist文件

fatpack文檔說這個

packlists-for

$ fatpack packlists-for Module1 Module2 Module3 

Searches your perl's @INC for .packlist files containing the .pm files for the modules requested and emits a list of unique packlist files to STDOUT.

These packlists will, in a pure cpan-installation environment, be all non-core distributions required for those modules.

Unfortunately most vendors strip the .packlist files so if you installed modules via e.g. apt-get you may be missing those modules; installing your dependencies into a  local::lib  first is the preferred workaround.

我認爲這是可能解決您的問題有用的建議