Perltex não consegue localizar módulos Perl

Perltex não consegue localizar módulos Perl

Estou usando a instalação do Tex Live e Strawberry Perl no Windows 10. Meu objetivo final era fazer com que o LaTeX recuperasse dados de uma planilha, conforme mostrado nesteresposta antiga. No entanto, neste momento estou tentando obter o código Perl usando um módulo adicional para trabalhar no perltex. Ao tentar usar um módulo emperltex

! Package perltex Error: Can't locate Excel/Writer/XLSX.pm in @INC (you may need to 
install the Excel::Writer::XLSX module) (@INC contains:
 E:/Programmdateien /texlive/2019/tlpkg/tlperl/lib 
 E:/programmdateien/texlive/2019/tlpkg/tlperl/site/lib
 E:/programmdateien/texlive/2019/tlpkg/tlperl/lib) BEGIN failed--compilation 
aborted at (eval 13) line 6.
(perltex)                .

Os módulos estão realmente instalados corretamente. Eu sei disso porque posso executar o código Perl perfeitamente com o resultado desejado. O problema ocorre apenas ao tentar compilar usando o perltex.

Responder1

Adicionar a um texmf.cnf local

TEXLIVE_WINDOWS_TRY_EXTERNAL_PERL = 1

Da documentação do texmf.cnf:

% This variable is specific to Windows.  It must be set to 0 or 1.  The
% default is 0.  Setting it to 1 tells the Windows script wrappers to
% use an already installed Perl interpreter if one is found on the
% search path, in preference to the Perl shipped with TeX Live.  Thus,
% it may be useful if you both (a) installed a full Perl distribution
% for general use, and (b) need to run Perl programs from TL that use
% additional modules we don't provide.  The TL Perl does provide all the
% standard Perl modules.

informação relacionada