Again and again here on TeX.SX users of MiKTeX ask a question having a problem with a package or included program, where it turns out, that a Perl script is involved, in particular glossaries
(because of the script makeglossaries
), latexdiff
and latexmk
. In most cases the error message looks like this:
makeglossaries.exe: The Perl interpreter could not be found.
When my remembrance does not deceive me, it must have worked in earlier versions of MiKTeX out of the box.
Though there are answers to questions serving more than the special issue, can we give here a basic solution even if it is not TeX related?
Let me list which Perl scripts are included in MiKTeX at time of writing (excerpt from MiKTeX configuration file scripts.ini
), for every script line exists a executable in the binaries subfolder with the name seen before the equal sign:
OOopict=scripts/gapfill/OOopict.pl afm2afm=scripts/fontools/perl/afm2afm.pl arlatex=scripts/bundledoc/arlatex authorindex=scripts/perl/authorindex/authorindex.pl autoinst=scripts/fontools/perl/autoinst.pl bib2xhtml=scripts/bib2xhtml/perl/bib2xhtml.pl bibhtml=scripts/bibhtml/perl/bibhtml.pl biokey2html1=scripts/shipunov/biokey2html1.pl biokey2html2=scripts/shipunov/biokey2html2.pl biokey2html3=scripts/shipunov/biokey2html3.pl birm=scripts/burmese/perl/birm.pl bundledoc=scripts/bundledoc/bundledoc cmap2enc=scripts/fontools/perl/cmap2enc.pl csvtools=scripts/csvtools/perl/csvtools.pl ctanify=scripts/ctanify/ctanify ctanupload=scripts/ctanupload/ctanupload.pl dosepsbin=scripts/dosepsbin/dosepsbin.pl etexdef=scripts/texdef/perl/texdef.pl exceltex=scripts/exceltex/perl/exceltex feynmf=scripts/feynmf/perl/feynmf.pl fig4latex=scripts/fig4latex/perl/fig4latex.pl findhyph=scripts/findhyph/perl/findhyph.pl font2afm=scripts/fontools/perl/font2afm.pl fullref=scripts/aomart/perl/fullref.pl htcopy=scripts/tex4ht/htcopy.pl htmove=scripts/tex4ht/htmove.pl ibyhyph=scripts/perl/ibycus-babel/ibyhyph.pl latex-git-log=scripts/latex-git-log latexdef=scripts/texdef/perl/texdef.pl latexdiff-fast=scripts/latexdiff/latexdiff-fast latexdiff-so=scripts/latexdiff/latexdiff-so latexdiff-vc=scripts/latexdiff/latexdiff-vc latexdiff=scripts/latexdiff/latexdiff latexindent=scripts/latexindent/latexindent.pl latexmk=scripts/latexmk/perl/latexmk.pl latexpand=scripts/latexpand/latexpand latexrevise=scripts/latexdiff/latexrevise ltximg=scripts/ltximg/ltximg.pl lualatexdef=scripts/texdef/perl/texdef.pl luatexdef=scripts/texdef/perl/texdef.pl makeglossaries=scripts/glossaries/makeglossaries makejmlrbook=scripts/jmlr/makejmlrbook mathspic113=scripts/mathspic/mathspic113.pl mathspic=scripts/mathspic/mathspic113.pl mf2pt1=scripts/mf2pt1/mf2pt1.pl mk4ht=scripts/tex4ht/mk4ht.pl mkjobtexmf=scripts/mkjobtexmf/mkjobtexmf.pl mkt1font=scripts/perl/accfonts/mkt1font.pl mptopdf=scripts/context/perl/mptopdf.pl orderrefs=scripts/perl/orderrefs/orderrefs.pl ot2kpx=scripts/fontools/perl/ot2kpx.pl pdfatfi=scripts/oberdiek/pdfatfi.pl pdfcrop=scripts/pdfcrop/pdfcrop.pl pdflatexdef=scripts/texdef/perl/texdef.pl pdftexdef=scripts/texdef/perl/texdef.pl pedigree=scripts/pedigree-perl/pedigree-perl/perl/pedigree.pl perltex=scripts/perltex/perl/perltex.pl pfm2kpx=scripts/fontools/perl/pfm2kpx.pl pkfix-helper=scripts/pkfix-helper/pkfix-helper pkfix=scripts/pkfix/pkfix.pl pn2pdf=scripts/perl/petri-nets/pn2pdf.pl pst2pdf=scripts/pst2pdf/perl/pst2pdf.pl rcsinfo=scripts/rcsinfo/perl/rcsinfo.pl showglyphs=scripts/fontools/perl/showglyphs.pl splitindex=scripts/splitindex/perl/splitindex.pl sty2dtx=scripts/sty2dtx/perl/sty2dtx.pl svn-multi=scripts/svn-multi/svn-multi.pl texcount=scripts/texcount/perl/texcount.pl texdef=scripts/texdef/perl/texdef.pl texdiff=scripts/texdiff/perl/texdiff.pl texdirflatten=scripts/texdirflatten/perl/texdirflatten.pl thumbpdf=scripts/thumbpdf/perl/thumbpdf.pl urlbst=scripts/urlbst/urlbst vpe=scripts/vpe/vpe.pl vpl2ovp=scripts/perl/accfonts/vpl2ovp.pl vpl2vpl=scripts/perl/accfonts/vpl2vpl.pl xdv2pdf_mergemarks=scripts/xetex/perl/xdv2pdf_mergemarks.pl xelatexdef=scripts/texdef/perl/texdef.pl xetexdef=scripts/texdef/perl/texdef.pl
There is very probably a similar issue for the one listed Python script:
pgfplots=scripts/pgfplots/pgfplots.py
PS: Lua scripts are not affected!