I have Strawberry Perl and MiKTeX v2.9 installed on Windows 10 with the latexindent
package installed via the MiKTeX console.
However, running latexindent.pl
in the command prompt results in the following error
Can't locate Log/Log4perl.pm in @INC (you may need to install the Log::Log4perl module) (@INC contains: C:/Program Files/MiKTeX 2.9/scripts/latexindent C:/Strawberry/perl/site/lib C:/Strawberry/perl/vendor/lib C:/Strawberry/perl/lib) at C:/Program Files/MiKTeX 2.9/scripts/latexindent/LatexIndent/LogFile.pm line 22. BEGIN failed--compilation aborted at C:/Program Files/MiKTeX 2.9/scripts/latexindent/LatexIndent/LogFile.pm line 22. Compilation failed in require at C:/Program Files/MiKTeX 2.9/scripts/latexindent/LatexIndent/Document.pm line 25. BEGIN failed--compilation aborted at C:/Program Files/MiKTeX 2.9/scripts/latexindent/LatexIndent/Document.pm line 25. Compilation failed in require at C:\Program Files\MiKTeX 2.9\scripts\latexindent\latexindent.pl line 27. BEGIN failed--compilation aborted at C:\Program Files\MiKTeX 2.9\scripts\latexindent\latexindent.pl line 27.
Additionally, this answer doesn't help in removing the error. So, what is missing here?
latexindent
. The simplest way of installing a Perl module is usingcpan
. See What's the easiest way to install a missing Perl module? and Installing modules using Strawberry Perl on StackOverflow.latexindent.exe
which doesn't need aperl
installation. available fromctan
ctan.org/pkg/latexindentperl
modules and/or latexindent. the vast majority of questions on this site revolve around installation, which means that I clearly need to do more work in helping. please feel free to help me with this athttp://github.com/cmhughes/latexindent.pl/