[Tex/LaTex] TeXmaker, makeglossaries: The script engine could not be found

glossariestexmaker

I use TexMaker and want to generate glossaries, right now I found

\usepackage[automake]{glossaries}

Doesn't help (don't know why and I need time to check), so I want to use manually way to generate, I can run command in cmd outside TeXMaker makeglossaries.exe my_file_name:

makeglossaries.exe hand_book_draft
makeglossaries version 4.35 (2017-11-14)
added glossary type 'main' (glg,gls,glo)
added glossary type 'acronym' (alg,acr,acn)
Warning: File 'hand_book_draft.glo' is empty.
Have you used any entries defined in glossary 'main'?
Remember to use package option 'nomain' if you
don't want to use the main glossary.
makeindex  -s "hand_book_draft.ist" -t "hand_book_draft.alg" -o "hand_book_draft.acr" "hand_book_draft.acn"
This is makeindex, version 2.15 [MiKTeX 2.9.6500 64-bit] (kpathsea + Thai support).
Scanning style file ./hand_book_draft.ist.............................done (29 attributes redefined, 0 ignored).
Scanning input file hand_book_draft.acn....done (33 entries accepted, 0 rejected).
Sorting entries....done (170 comparisons).
Generating output file hand_book_draft.acr....done (36 lines written, 0 warnings).
Output written in hand_book_draft.acr.
Transcript written in hand_book_draft.alg.

everything is OK, glossaries printed. Then I add it into TeXMaker user command as:

makeglossaries %

However, when I run this in the TexMaker, it shows:

Process started

makeglossaries: The script engine could not

be found. makeglossaries: Data: scriptEngine="perl.exe"

Process exited with error(s)

What is the problem??

Best Answer

The answere is very simple (after hours of searching):

  • Just download: ActivePerl.exe
  • Navigate to C:\Program Files\MiKTeX 2.9\miktex\bin\x64 and run perltex.exe

This should save you from getting the error code

  • Now you can use a manual cmd in TexMaker to generate your glossaries. See at the end of this Link

Then, in Texmaker, go to User -> User Commands -> Edit User Commands. Choose command 1

Menuitem = makeglossaries Command = makeglossaries % Now push Alt+Shift+F1 and then -> F1

Note, for use with the "use build directory" option of Texmaker: makeglossaries needs to find the aux file. Thankfully, while Texmaker does not help there, the option -d of makeglossaries provides for the subdirectory case. Hence the Command in this case should be: Command = makeglossaries -d build % instead.

Please don't forget to restart TeXMaker after your work!

The automake option in glossaries doesn't work for me too right now. But I will go on and let you now.

Related Question