我重新安装了 Windows 并重新安装了 MikTex,现在我无法再使用 luatex 编译任何文档。这个问题似乎与此类似Lualatex 没有输出(MiKTeX)和这个TexLive 2019 lualatex 无法编译文档和这个升级到 TeX Live 2020 后 LuaLaTeX 无法编译问题,但那里的解决方案都对我没有任何帮助。
\documentclass[10pt, a4paper]{paper}
\begin{document} % this command starts the document
test
\end{document} % end the document
如果我在 pdftex 或 xelatex 中编译它,则没有问题,但在 lualex 中我得到(大约等待 2 分钟后):
This is LuaHBTeX, Version 1.13.0 (MiKTeX 21.2)
restricted system commands enabled.
Sorry, but luahblatex did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\laure\AppData\Local\MiKTeX\miktex\log\luahblatex.log
Sorry, but "MiKTeX Compiler Driver" did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\laure\AppData\Local\MiKTeX\miktex\log\texify.log
这是日志文件的相关部分
2021-03-04 22:21:50,228Z INFO luahblatex - this process (14920) started by 'texify' with command line: luahblatex --synctex=1 C:/Users/laure/Documents\my_test_file.tex
2021-03-04 22:21:50,416Z INFO luahblatex - going to create file: luahblatex.fmt
2021-03-04 22:21:50,518Z INFO luahblatex.core - start process: initexmf --enable-installer --dump-by-name=luahblatex --engine=luahbtex
2021-03-04 22:22:29,245Z ERROR luahblatex - C:\Users\laure\AppData\Local\Programs\MiKTeX\miktex\bin\x64\initexmf.exe did not succeed; exitCode: 1
2021-03-04 22:22:29,246Z ERROR luahblatex - output:
2021-03-04 22:22:29,246Z ERROR luahblatex -
Sorry, but "MiKTeX Configuration Utility" did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\laure\AppData\Local\MiKTeX\miktex\log\initexmf.log
2021-03-04 22:22:29,246Z FATAL luahblatex.core - The memory dump file could not be found.
2021-03-04 22:22:29,246Z FATAL luahblatex.core - Data: fileName="luahblatex.fmt"
2021-03-04 22:22:29,247Z FATAL luahblatex.core - Source: Programs\TeXAndFriends\luatex\miktex\miktex.cpp:81
2021-03-04 22:22:29,247Z FATAL luahblatex - The memory dump file could not be found.
2021-03-04 22:22:29,247Z FATAL luahblatex - Info: fileName="luahblatex.fmt"
2021-03-04 22:22:29,248Z FATAL luahblatex - Source: Programs\TeXAndFriends\luatex\miktex\miktex.cpp
2021-03-04 22:22:29,248Z FATAL luahblatex - Line: 81
2021-03-04 22:22:29,328Z INFO luahblatex - this process (14920) finishes with exit code 1
和
2021-03-04 22:21:51,594Z INFO initexmf - this is MiKTeX Configuration Utility 4.3 (MiKTeX 21.2)
2021-03-04 22:21:51,595Z INFO initexmf - this process (19044) started by 'luahblatex' with command line: initexmf --enable-installer --dump-by-name=luahblatex --engine=luahbtex
2021-03-04 22:21:51,595Z INFO initexmf - Operating on the private (per-user) MiKTeX setup
2021-03-04 22:21:51,624Z INFO initexmf - running: miktex-makefmt.exe --engine=luahbtex --dest-name=luahblatex --no-dump lualatex.ini --enable-installer --miktex-disable-maintenance --miktex-disable-diagnose
2021-03-04 22:21:51,731Z INFO initexmf.core - start process: miktex-makefmt.exe --engine=luahbtex --dest-name=luahblatex --no-dump lualatex.ini --enable-installer --miktex-disable-maintenance --miktex-disable-diagnose
2021-03-04 22:22:29,218Z ERROR initexmf - sub-process error output has been saved to 'C:\Users\laure\AppData\Local\MiKTeX\miktex\log\miktex-makefmt_2021-03-04-222229.out'
2021-03-04 22:22:29,219Z FATAL initexmf - The executed process did not succeed.
2021-03-04 22:22:29,220Z FATAL initexmf - Info: fileName="C:\Users\laure\AppData\Local\Programs\MiKTeX\miktex\bin\x64\miktex-makefmt.exe", exitCode="1"
2021-03-04 22:22:29,220Z FATAL initexmf - Source:
2021-03-04 22:22:29,220Z FATAL initexmf - Line: 0
2021-03-04 22:22:29,222Z INFO initexmf - this process (19044) finishes with exit code 1
这是什么?
编辑(更完整的日志文件)
miktex/log/texify.log
2021-03-05 07:32:56,799Z INFO texify - this process (10416) started by 'miktex-texworks' with command line: C:\Users\laure\AppData\Local\Programs\MiKTeX\miktex\bin\x64\texify.exe --pdf --synctex=1 --clean my_test_file.tex
2021-03-05 07:32:56,958Z INFO texify.core - start process: pdflatex --synctex=1 C:/Users/laure/Documents\my_test_file.tex
2021-03-05 07:32:59,345Z INFO texify.core - start process: pdflatex --synctex=1 C:/Users/laure/Documents\my_test_file.tex
2021-03-05 07:33:01,158Z INFO texify - this process (10416) finishes with exit code 0
2021-03-05 07:33:18,962Z INFO texify - this process (6512) started by 'miktex-texworks' with command line: C:\Users\laure\AppData\Local\Programs\MiKTeX\miktex\bin\x64\texify.exe --pdf --engine=luahbtex --synctex=1 --clean my_test_file.tex
2021-03-05 07:33:19,116Z INFO texify.core - start process: luahblatex --synctex=1 C:/Users/laure/Documents\my_test_file.tex
2021-03-05 07:34:04,496Z ERROR texify.core - The system cannot find the file specified.
2021-03-05 07:34:04,496Z ERROR texify.core - Function: CopyFileW
2021-03-05 07:34:04,496Z ERROR texify.core - Result: 2
2021-03-05 07:34:04,497Z ERROR texify.core - Data: existing="my_test_file.log", path="C:/Users/laure/Documents\my_test_file.log"
2021-03-05 07:34:04,497Z ERROR texify.core - Source: Libraries\MiKTeX\Core\File\win\winFile.cpp:390
2021-03-05 07:34:04,498Z FATAL texify.core - TeX engine failed for some reason.
2021-03-05 07:34:04,498Z FATAL texify.core - Data:
2021-03-05 07:34:04,498Z FATAL texify.core - Source: Programs\MiKTeX\texify\mcd.cpp:1529
2021-03-05 07:34:04,507Z FATAL texify - TeX engine failed for some reason.
2021-03-05 07:34:04,507Z FATAL texify - Info:
2021-03-05 07:34:04,507Z FATAL texify - Source: Programs\MiKTeX\texify\mcd.cpp
2021-03-05 07:34:04,507Z FATAL texify - Line: 1529
2021-03-05 07:35:01,948Z INFO texify - this process (6576) started by 'miktex-texworks' with command line: C:\Users\laure\AppData\Local\Programs\MiKTeX\miktex\bin\x64\texify.exe --pdf --engine=luahbtex --synctex=1 --clean my_test_file.tex
2021-03-05 07:35:02,090Z INFO texify.core - start process: luahblatex --synctex=1 C:/Users/laure/Documents\my_test_file.tex
2021-03-05 07:35:48,130Z ERROR texify.core - The system cannot find the file specified.
2021-03-05 07:35:48,131Z ERROR texify.core - Function: CopyFileW
2021-03-05 07:35:48,131Z ERROR texify.core - Result: 2
2021-03-05 07:35:48,131Z ERROR texify.core - Data: existing="my_test_file.log", path="C:/Users/laure/Documents\my_test_file.log"
2021-03-05 07:35:48,131Z ERROR texify.core - Source: Libraries\MiKTeX\Core\File\win\winFile.cpp:390
2021-03-05 07:35:48,132Z FATAL texify.core - TeX engine failed for some reason.
2021-03-05 07:35:48,132Z FATAL texify.core - Data:
2021-03-05 07:35:48,132Z FATAL texify.core - Source: Programs\MiKTeX\texify\mcd.cpp:1529
2021-03-05 07:35:48,140Z FATAL texify - TeX engine failed for some reason.
2021-03-05 07:35:48,140Z FATAL texify - Info:
2021-03-05 07:35:48,140Z FATAL texify - Source: Programs\MiKTeX\texify\mcd.cpp
2021-03-05 07:35:48,140Z FATAL texify - Line: 1529
miktex/log/luahblatex.log
2021-03-05 07:35:02,908Z INFO luahblatex - this process (6412) started by 'texify' with command line: luahblatex --synctex=1 C:/Users/laure/Documents\my_test_file.tex
2021-03-05 07:35:03,108Z INFO luahblatex - going to create file: luahblatex.fmt
2021-03-05 07:35:03,214Z INFO luahblatex.core - start process: initexmf --enable-installer --dump-by-name=luahblatex --engine=luahbtex
2021-03-05 07:35:48,054Z ERROR luahblatex - C:\Users\laure\AppData\Local\Programs\MiKTeX\miktex\bin\x64\initexmf.exe did not succeed; exitCode: 1
2021-03-05 07:35:48,054Z ERROR luahblatex - output:
2021-03-05 07:35:48,054Z ERROR luahblatex -
Sorry, but "MiKTeX Configuration Utility" did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\laure\AppData\Local\MiKTeX\miktex\log\initexmf.log
2021-03-05 07:35:48,054Z FATAL luahblatex.core - The memory dump file could not be found.
2021-03-05 07:35:48,054Z FATAL luahblatex.core - Data: fileName="luahblatex.fmt"
2021-03-05 07:35:48,055Z FATAL luahblatex.core - Source: Programs\TeXAndFriends\luatex\miktex\miktex.cpp:81
2021-03-05 07:35:48,055Z FATAL luahblatex - The memory dump file could not be found.
2021-03-05 07:35:48,055Z FATAL luahblatex - Info: fileName="luahblatex.fmt"
2021-03-05 07:35:48,055Z FATAL luahblatex - Source: Programs\TeXAndFriends\luatex\miktex\miktex.cpp
2021-03-05 07:35:48,055Z FATAL luahblatex - Line: 81
2021-03-05 07:35:48,096Z INFO luahblatex - this process (6412) finishes with exit code 1