[Tex/LaTex] Sorry, but latexmk did not succeed for the following reason:MiKTeX could not find the script engine ‘perl.exe’ which is required to execute ‘latexmk’

errorsperl

LaTeX workshop on vscode keeps showing this error:

Sorry, but latexmk did not succeed for the following reason:

MiKTeX could not find the script engine 'perl.exe' which is required to execute 'latexmk'.

Remedy:

Make sure 'perl.exe' is installed on your system.

But i have installed perl.exe to my windows computer via strawberryperl. How can I make MiKTeX find perl.exe? Similar question asked before but in that case he/she didn't installed perl.exe, but i did and it gives me error.please help me to fix this error.

Here  is Perl.exe

Best Answer

I've solved the issue with @0x6d64's help. Just need to add directory of perl.exe to PATH variable. Go to PATH variable select New and type(if you installed strawberry with defaul settings otherwise type where's your perl folder)

C:\Strawberry\perl

and issue is fixed

Related Question