我使用 Windows 10、Miktex 和 pdflatex。此外,我的 GUI 是 Texstudio。我最近将 Texstudio 更新到了最新版本。一周前一切正常,但今天我想编译一个 .tex 文件时却失败了。我可以把问题追溯到包sgame
,但现在那是另一个故事了。
我尝试重启电脑 - 失败了
查看我的设置后,没有发现任何可疑之处,我重新安装了 Texstudio - 我可能做错了什么,但没有。然后我更新了 Miktex,甚至重新安装了它。
我甚至改变了我的设置 - 这是一个很大的错误 - 现在 pdftex 和/或 miktex 不再正常工作。
不幸的是我找不到解决我的问题的方法。
编译时的错误信息:
Could not start Build & View:PdfLaTeX:
"C:/Program Files/MiKTeX 2.9/miktex/bin/x64/pdflatex.exe" -synctex=1 -
interaction=nonstopmode %.tex
我的 .log 文件
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\Markus\AppData\Local\MiKTeX\2.9\miktex\log\initexmf.log
2018-12-20 15:10:34,947+0100 FATAL pdflatex - The memory dump file could not be found.
2018-12-20 15:10:34,947+0100 FATAL pdflatex - Info: fileName="pdflatex.fmt"
2018-12-20 15:10:34,947+0100 FATAL pdflatex - Source: Libraries\MiKTeX\TeXAndFriends\texmfapp.cpp
2018-12-20 15:10:34,947+0100 FATAL pdflatex - Line: 690
2018-12-20 15:10:34,947+0100 INFO pdflatex - finishing with exit code 1
2018-12-20 15:10:42,165+0100 INFO pdflatex - starting with command line: "C:\Program Files\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe" -synctex=1 -interaction=nonstopmode texstudio_a13436.tex
2018-12-20 15:10:42,181+0100 INFO pdflatex - allowing known shell commands
2018-12-20 15:10:42,181+0100 INFO pdflatex - enabling input (output) from (to) processes
2018-12-20 15:10:42,212+0100 INFO pdflatex - going to create file: pdflatex.fmt
2018-12-20 15:10:49,852+0100 ERROR pdflatex - C:\Program Files\MiKTeX 2.9\miktex\bin\x64\initexmf.exe did not succeed; exitCode: 1
2018-12-20 15:10:49,852+0100 ERROR pdflatex - output:
2018-12-20 15:10:49,852+0100 ERROR pdflatex -
Sorry, but "MiKTeX Configuration Utility" did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\Markus\AppData\Local\MiKTeX\2.9\miktex\log\initexmf.log
2018-12-20 15:10:49,852+0100 FATAL pdflatex - The memory dump file could not be found.
2018-12-20 15:10:49,852+0100 FATAL pdflatex - Info: fileName="pdflatex.fmt"
2018-12-20 15:10:49,852+0100 FATAL pdflatex - Source: Libraries\MiKTeX\TeXAndFriends\texmfapp.cpp
2018-12-20 15:10:49,852+0100 FATAL pdflatex - Line: 690
2018-12-20 15:10:49,852+0100 INFO pdflatex - finishing with exit code 1
我的命令是:
乳胶
latex.exe -src -interaction=nonstopmode %.tex
拉泰克斯
"C:/Program Files/MiKTeX 2.9/miktex/bin/x64/pdflatex.exe" -synctex=1 -interaction=nonstopmode %.tex
默认编译器:
txs:///pdflatex
不必要的最小工作示例:
\documentclass{article}
\begin{document}
Hello World
\end{document}
在cmd上运行后initexmf --dump=pdflatex
得到以下结果:
Sorry, but "MiKTeX Configuration Utility" did not succeed. The log file hopefully contains the information to get MiKTeX going again:
C:\Users\Markus\AppData\Local\MiKTeX\2.9\miktex\log\initexmf.log
initexmf.log 文件显示:
2018-12-20 16:09:11,743+0100 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6811 (MiKTeX 2.9.6840 64-bit) 2018-12-20 16:09:11,743+0100 INFO initexmf - Operating on the private (per-user) MiKTeX setup 2018-12-20 16:09:11,743+0100 INFO initexmf - starting with command line: initexmf --dump=pdflatex 2018-12-20 16:09:11,743+0100 INFO initexmf - running: miktex-makefmt.exe --engine=pdftex --dest-name=pdflatex --no-dump pdflatex.ini --engine-option=-tcx=cp227.tcx --enable-installer 2018-12-20 16:09:19,015+0100 ERROR initexmf - sub-process error output has been saved to 'C:\Users\Markus\AppData\Local\MiKTeX\2.9\miktex\log\miktex-makefmt_2018-12-20-160919.out' 2018-12-20 16:09:19,015+0100 FATAL initexmf - The process terminated due to an access violation. 2018-12-20 16:09:19,015+0100 FATAL initexmf - Info: fileName="C:\Program Files\MiKTeX 2.9\miktex\bin\x64\miktex-pdftex.exe" 2018-12-20 16:09:19,015+0100 FATAL initexmf - Source: Libraries\MiKTeX\Core\Process\win\winProcess.cpp 2018-12-20 16:09:19,015+0100 FATAL initexmf - Line: 475