I'm interested in using CWEB with LaTeX on Windows. Today I discovered my MikTeX installation comes with two interesting programs, cweave and ctangle. Are they Knuth and Levy's CWEB? When I try to run them, I get the following problem:
%cweave.exe cwebsync.w_h This is CWEAVE, Version 3.64 (MiKTeX 2.9.6960) Sorry, but c:\emacs\miktex\texmfs\install\miktex\bin\cweave.exe did not succeed. The log file hopefully contains the information to get MiKTeX going again: c:\emacs\miktex\texmfs\data\miktex\log\cweave.log %
The log file reveals the following:
%cat c:\emacs\miktex\texmfs\data\miktex\log\cweave.log [...] 2019-02-18 21:44:44,561-0300 INFO cweave - starting with command line: c:\emacs\miktex\texmfs\install\miktex\bin\cweave.exe cwebsync.w_h 2019-02-18 21:44:44,644-0300 FATAL cweave - MiKTeX encountered an internal error. 2019-02-18 21:44:44,645-0300 FATAL cweave - Info: path="." 2019-02-18 21:44:44,645-0300 FATAL cweave - Source: Libraries\MiKTeX\Core\Session\miktex.cpp 2019-02-18 21:44:44,646-0300 FATAL cweave - Line: 675 2019-02-18 21:44:44,656-0300 INFO cweave - finishing with exit code 1 %
I've seen this type of internal error before --- my MikTeX is the portable one and not everything works out of the box with this MikTeX portable version. So perhaps that's the same problem here. Nevertheless: should I bother with these programs from the MikTex installation?