LaTeX-Workshop on VS Code keeps printing this error:

latexmk: The script engine could not be found.
latexmk: Data: scriptEngine="perl.exe", scriptName="latexmk"

I installed 'latexmk' via MikTeX 2.9, yet it still gives me this message. What do I have to do?


Quick summary:

  1. Install Perl from The Perl Programming Language. ActiveState Perl is recommended for beginners. Make sure to add the Perl local directory to your system Path.
  2. Install the latexmk package with your TeX distribution.
| improve this answer | |
  • 1
    If you had used texlive instead of miktex, perl would have been included. – daleif Dec 1 '18 at 12:45
  • 2
    @daleif perfectly true, however many OLD install instructions still assume MiKTeX includes Perl as it formerly did. It may be worth mentioning that like TeX Live is "fuller" than incremental TeX such as W32 or Tiny or MiKTeX equally the fuller version of Perl should be the Strawberry flavour but MiKTeX plus ActiveState will be good enough for most latexmk on windows users. – user170109 Dec 1 '18 at 13:10
  • 1
    K. Paul it may be worth mentioning that there are two things to check after installing Perl 1) check perl has included itself on the system path 2) check that the path is not terminated by a final semicolon; as this can supposedly upset latexmk searching beyond end of ; separated path for a non existent final entry. – user170109 Dec 1 '18 at 13:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.