I've been trying to install garamondx on MiKTeX (on a Windows 10 machine) after it was marked as obsolete and removed in a recent MiKTeX update.
Following the instructions on the garamondx README page, I downloaded garamondx.tds from CTAN, unzipped it, and run the two following instructions (after cding into the unzipped folder):
initexmf --update-fndb
initexmf --edit-config-file updmap
While the first one completes without warnings, the second one fails with the following message:
C:\Users\yourname\Downloads\garamondx.tds> initexmf.exe --edit-config-file updmap
Sorry, but "MiKTeX Configuration Utility" did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:/Users/yourname/AppData/Local/MiKTeX/2.9/miktex/log/initexmf.log
You may want to visit the MiKTeX project page, if you need help.
The relevant lines on the mentioned .log file are
2017-05-22 11:19:33,907+0100 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6234 (MiKTeX 2.9.6210 64-bit)
2017-05-22 11:19:33,940+0100 FATAL initexmf - Windows API error 2: The system cannot find the file specified.
2017-05-22 11:19:33,940+0100 FATAL initexmf - Info: fileName="GitPad"
2017-05-22 11:19:33,940+0100 FATAL initexmf - Source: Libraries\MiKTeX\Core\Process\win\winProcess.cpp
2017-05-22 11:19:33,940+0100 FATAL initexmf - Line: 68
What am I doing wrong? Is this even supposed to work on Windows?
Given that from the log it emerges that miktex is trying to use GitPad, I checked and realized (after suggestion in the comments) that the system variable EDITOR was set to GitPad for me (for reasons unknown to me).
Changing the value of this variable with $env:EDITOR = Notepad on powershell, I tried running the command again.
It still fails with the same error, but now the log registers an error at a different line:
2017-05-22 15:33:01,899+0100 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6234 (MiKTeX 2.9.6210 64-bit)
2017-05-22 15:33:01,954+0100 FATAL initexmf - Windows API error 193.
2017-05-22 15:33:01,954+0100 FATAL initexmf - Info: fileName="Notepad", commandLine="Notepad C:\Users\lk\AppData\Roaming\MiKTeX\2.9\miktex/config\updmap.cfg"
2017-05-22 15:33:01,954+0100 FATAL initexmf - Source: Libraries\MiKTeX\Core\Process\win\winProcess.cpp
2017-05-22 15:33:01,954+0100 FATAL initexmf - Line: 270
What is the expected value of the EDITOR variable?
echo %EDITOR%? – Ulrike Fischer May 22 '17 at 14:14$env:EDITORdoes giveGitPad, and looking at the output ofenvconfirms that this is the case. I have no idea where this setting came from. However, changing it toNotepadresults in the same problem, only with the log now giving error at Line 270 instead of 68. What is the expected value ofEDITOR? – glS May 22 '17 at 14:30echo %EDITOR%works fine for me (when I set the variable). Are you using a standard command line? By default (if EDITOR is not set) miktex uses notepad.exe. – Ulrike Fischer May 22 '17 at 14:43