Subject: | Problem using pp with CPANPLUS::Backend |
Place the following two lines in a file called "test.pl":
use CPANPLUS::Backend;
my $cpan = CPANPLUS::Backend->new();
Build "test.exe" by running "pp -o test.exe test.pl", then run "test.exe". It produces the following output:
cannot find CPANPLUS\I18N\CPANPLUS.pot (called by CPANPLUS::I18N) in @INC at Locale/Maketext/Lexicon.pm line 370.
Compilation failed in require at CPANPLUS/Backend.pm line 15.
BEGIN failed--compilation aborted at CPANPLUS/Backend.pm line 15.
Compilation failed in require at script/test.pl line 1.
BEGIN failed--compilation aborted at script/test.pl line 1.
I tried explicitly including the missing file using the -M option, but it either doesn't find it (using "-M CPANPLUS/I18N/CPANPLUS.pot") or else puts it in the "root" of the .exe ZIP file structure (using "-M C:\perl5\site\lib\CPANPLUS\I18N\CPANPLUS.pot") which then doesn't solve the problem.
How do I include a non-Perl file such as this .pot file within the lib/ tree? I can't see any way to do it.
This is on Win32 using perl-5.8.4 with PAR 0.80_99.