我在使用 MiKTeX 2.9 时遇到了一些问题,因此我卸载并重新安装了它(使用网络安装程序),希望问题能够得到解决。然而,MiKTeX 现在似乎完全坏了;当我尝试编译文档(今天早上刚刚成功编译)时,TeXworks 给出了以下错误消息:
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6840 64-bit)
Sorry, but pdflatex did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\user\AppData\Local\MiKTeX\2.9\miktex\log\pdflatex.log
Sorry, but "MiKTeX Compiler Driver" did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\user\AppData\Local\MiKTeX\2.9\miktex\log\texify.log
我将把日志的内容粘贴到本文末尾。我尝试再次卸载,删除 Program Files 和 AppData 中与 MiKTeX 相关的所有文件夹,重新启动笔记本电脑并重新安装,但似乎没有任何效果。在命令行中编译它也不起作用。我对使用 LaTeX 还比较陌生,没有主意,如果有人能帮助我解决这个问题,我将不胜感激。
这是pdflatex.log的内容:
2018-10-05 02:19:48,194+0200 INFO pdflatex - starting with command line: pdflatex --synctex=1 C:/Users/user/Documents/university/presentation\slide1.tex
2018-10-05 02:19:48,206+0200 INFO pdflatex - allowing known shell commands
2018-10-05 02:19:48,208+0200 INFO pdflatex - enabling input (output) from (to) processes
2018-10-05 02:19:48,292+0200 INFO pdflatex - going to create file: pdflatex.fmt
2018-10-05 02:19:49,704+0200 ERROR pdflatex - C:\Programme\MiKTeX_2.9\miktex\bin\x64\initexmf.exe did not succeed; exitCode: 1
2018-10-05 02:19:49,704+0200 ERROR pdflatex - output:
2018-10-05 02:19:49,704+0200 ERROR pdflatex -
Sorry, but "MiKTeX Configuration Utility" did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\user\AppData\Local\MiKTeX\2.9\miktex\log\initexmf.log
2018-10-05 02:19:49,706+0200 FATAL pdflatex - The memory dump file could not be found.
2018-10-05 02:19:49,707+0200 FATAL pdflatex - Info: fileName="pdflatex.fmt"
2018-10-05 02:19:49,707+0200 FATAL pdflatex - Source: Libraries\MiKTeX\TeXAndFriends\texmfapp.cpp
2018-10-05 02:19:49,707+0200 FATAL pdflatex - Line: 690
2018-10-05 02:19:49,708+0200 INFO pdflatex - finishing with exit code 1
texify.log的内容:
2018-10-05 02:19:12,237+0200 INFO texify - starting with command line: C:\Programme\MiKTeX_2.9\miktex\bin\x64\texify.exe --pdf --synctex=1 --clean slide1.tex
2018-10-05 02:19:12,255+0200 INFO texify - running 'initexmf' to refresh the file name database
2018-10-05 02:19:18,520+0200 INFO texify - running 'initexmf' to create font map files
2018-10-05 02:19:47,751+0200 INFO texify - starting with command line: C:\Programme\MiKTeX_2.9\miktex\bin\x64\texify.exe --pdf --synctex=1 --clean slide1.tex
2018-10-05 02:19:49,735+0200 FATAL texify - TeX engine failed for some reason.
2018-10-05 02:19:49,735+0200 FATAL texify - Info:
2018-10-05 02:19:49,735+0200 FATAL texify - Source: Programs\MiKTeX\texify\mcd.cpp
2018-10-05 02:19:49,735+0200 FATAL texify - Line: 1476
pdflatex.log 指的是 initexmf.log,它是:
2018-10-05 02:19:12,553+0200 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6811 (MiKTeX 2.9.6840 64-bit)
2018-10-05 02:19:12,553+0200 INFO initexmf - Operating on the private (per-user) MiKTeX setup
2018-10-05 02:19:12,554+0200 INFO initexmf - starting with command line: initexmf --enable-installer --quiet --update-fndb
2018-10-05 02:19:12,576+0200 INFO initexmf - Creating fndb for user root directory (C:\Users\user\AppData\Roaming\MiKTeX\2.9)...
2018-10-05 02:19:12,625+0200 INFO initexmf - Creating fndb for user root directory (C:\Users\user\AppData\Local\MiKTeX\2.9)...
2018-10-05 02:19:12,678+0200 INFO initexmf - Skipping common root directory (C:\ProgramData\MiKTeX\2.9)...
2018-10-05 02:19:12,679+0200 INFO initexmf - Skipping common root directory (C:\Programme\MiKTeX_2.9)...
2018-10-05 02:19:18,500+0200 INFO initexmf - finishing with exit code 0
2018-10-05 02:19:18,778+0200 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6811 (MiKTeX 2.9.6840 64-bit)
2018-10-05 02:19:18,778+0200 INFO initexmf - Operating on the private (per-user) MiKTeX setup
2018-10-05 02:19:18,778+0200 INFO initexmf - starting with command line: initexmf --enable-installer --quiet --mkmaps
2018-10-05 02:19:18,798+0200 INFO initexmf - running: mkfntmap --enable-installer
2018-10-05 02:19:48,687+0200 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6811 (MiKTeX 2.9.6840 64-bit)
2018-10-05 02:19:48,687+0200 INFO initexmf - Operating on the private (per-user) MiKTeX setup
2018-10-05 02:19:48,687+0200 INFO initexmf - starting with command line: initexmf --enable-installer --dump-by-name=pdflatex --engine=pdftex
2018-10-05 02:19:48,693+0200 INFO initexmf - running: miktex-makefmt.exe --engine=pdftex --dest-name=pdflatex --no-dump pdflatex.ini --engine-option=-tcx=cp227.tcx --enable-installer
2018-10-05 02:19:49,678+0200 ERROR initexmf - sub-process error output has been saved to 'C:\Users\user\AppData\Local\MiKTeX\2.9\miktex\log\miktex-makefmt_2018-10-05-021949.out'
2018-10-05 02:19:49,679+0200 FATAL initexmf - The executed process did not succeed.
2018-10-05 02:19:49,679+0200 FATAL initexmf - Info: fileName="C:\Programme\MiKTeX_2.9\miktex\bin\x64\miktex-makefmt.exe", exitCode="1"
2018-10-05 02:19:49,679+0200 FATAL initexmf - Source:
2018-10-05 02:19:49,679+0200 FATAL initexmf - Line: 0
编辑:这是 miktex-makefmt_2018-10-05-021949.out
Running miktex-pdftex.exe...
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6840 64-bit) (INITEX)
Sorry, but miktex-pdftex.exe did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\user\AppData\Local\MiKTeX\2.9\miktex\log\miktex-pdftex.log
Sorry, but miktex-makefmt did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:\Users\user\AppData\Local\MiKTeX\2.9\miktex\log\miktex-makefmt.log
这是 miktex-pdftex.log:
2018-10-05 02:33:07,207+0200 INFO miktex-pdftex - finishing with exit code 1
2018-10-05 02:34:14,811+0200 INFO miktex-pdftex - starting with command line: miktex-pdftex.exe --miktex-enable-installer --initialize --interaction=nonstopmode --halt-on-error --alias=pdflatex --job-name=pdflatex -tcx=cp227.tcx --enable-etex pdflatex.ini
2018-10-05 02:34:14,821+0200 INFO miktex-pdftex - allowing known shell commands
2018-10-05 02:34:14,822+0200 INFO miktex-pdftex - enabling input (output) from (to) processes
2018-10-05 02:34:14,871+0200 FATAL miktex-pdftex - Windows API error 5: Zugriff verweigert
2018-10-05 02:34:14,871+0200 FATAL miktex-pdftex - Info: path="C:\Programme\MiKTeX_2.9\tex\latex\00miktex\pdflatex.ini"
2018-10-05 02:34:14,871+0200 FATAL miktex-pdftex - Source: Libraries\MiKTeX\Core\PathName\PathName.cpp
2018-10-05 02:34:14,871+0200 FATAL miktex-pdftex - Line: 156
2018-10-05 02:34:14,871+0200 INFO miktex-pdftex - finishing with exit code 1
2018-10-05 02:36:59,571+0200 INFO miktex-pdftex - starting with command line: miktex-pdftex.exe --miktex-enable-installer --initialize --interaction=nonstopmode --halt-on-error --alias=pdflatex --job-name=pdflatex -tcx=cp227.tcx --enable-etex pdflatex.ini
2018-10-05 02:36:59,596+0200 INFO miktex-pdftex - allowing known shell commands
2018-10-05 02:36:59,597+0200 INFO miktex-pdftex - enabling input (output) from (to) processes
2018-10-05 02:36:59,665+0200 FATAL miktex-pdftex - Windows API error 5: Zugriff verweigert
2018-10-05 02:36:59,665+0200 FATAL miktex-pdftex - Info: path="C:\Programme\MiKTeX_2.9\tex\latex\00miktex\pdflatex.ini"
2018-10-05 02:36:59,665+0200 FATAL miktex-pdftex - Source: Libraries\MiKTeX\Core\PathName\PathName.cpp
2018-10-05 02:36:59,665+0200 FATAL miktex-pdftex - Line: 156
2018-10-05 02:36:59,666+0200 INFO miktex-pdftex - finishing with exit code 1
这是 miktex-makefmt.log:
2018-10-05 02:19:49,033+0200 INFO miktex-makefmt - starting with command line: miktex-makefmt.exe --engine=pdftex --dest-name=pdflatex --no-dump pdflatex.ini --engine-option=-tcx=cp227.tcx --enable-installer
2018-10-05 02:19:49,047+0200 INFO makefmt - found input file: C:\Programme\MiKTeX_2.9\tex\latex\00miktex\pdflatex.ini
2018-10-05 02:19:49,047+0200 INFO makefmt - Creating the pdflatex format file...
2018-10-05 02:19:49,078+0200 INFO makefmt - Running miktex-pdftex.exe...
2018-10-05 02:19:49,079+0200 INFO makefmt - running: miktex-pdftex.exe --miktex-enable-installer --initialize --interaction=nonstopmode --halt-on-error --alias=pdflatex --job-name=pdflatex -tcx=cp227.tcx --enable-etex pdflatex.ini
2018-10-05 02:19:49,657+0200 FATAL miktex-makefmt - miktex-pdftex.exe failed on pdflatex.ini.
2018-10-05 02:19:49,657+0200 FATAL miktex-makefmt - miktex-pdftex.exe failed on pdflatex.ini.
2018-10-05 02:19:49,657+0200 FATAL miktex-makefmt - Info:
2018-10-05 02:19:49,657+0200 FATAL miktex-makefmt - Source:
2018-10-05 02:19:49,657+0200 FATAL miktex-makefmt - Line: 0
2018-10-05 02:33:06,845+0200 INFO miktex-makefmt - starting with command line: miktex-makefmt.exe --engine=pdftex --dest-name=pdflatex --no-dump pdflatex.ini --engine-option=-tcx=cp227.tcx --enable-installer
2018-10-05 02:33:06,846+0200 WARN miktex-makefmt - running with administrator privileges
2018-10-05 02:33:06,858+0200 INFO makefmt - found input file: C:\Programme\MiKTeX_2.9\tex\latex\00miktex\pdflatex.ini
2018-10-05 02:33:06,860+0200 INFO makefmt - Creating the pdflatex format file...
2018-10-05 02:33:06,870+0200 INFO makefmt - Running miktex-pdftex.exe...
2018-10-05 02:33:06,871+0200 INFO makefmt - running: miktex-pdftex.exe --miktex-enable-installer --initialize --interaction=nonstopmode --halt-on-error --alias=pdflatex --job-name=pdflatex -tcx=cp227.tcx --enable-etex pdflatex.ini
2018-10-05 02:33:07,249+0200 FATAL miktex-makefmt - miktex-pdftex.exe failed on pdflatex.ini.
2018-10-05 02:33:07,249+0200 FATAL miktex-makefmt - miktex-pdftex.exe failed on pdflatex.ini.
2018-10-05 02:33:07,249+0200 FATAL miktex-makefmt - Info:
2018-10-05 02:33:07,249+0200 FATAL miktex-makefmt - Source:
2018-10-05 02:33:07,249+0200 FATAL miktex-makefmt - Line: 0
2018-10-05 02:34:14,497+0200 INFO miktex-makefmt - starting with command line: miktex-makefmt.exe --engine=pdftex --dest-name=pdflatex --no-dump pdflatex.ini --engine-option=-tcx=cp227.tcx --enable-installer
2018-10-05 02:34:14,497+0200 INFO makefmt - found input file: C:\Programme\MiKTeX_2.9\tex\latex\00miktex\pdflatex.ini
2018-10-05 02:34:14,514+0200 INFO makefmt - Creating the pdflatex format file...
2018-10-05 02:34:14,525+0200 INFO makefmt - Running miktex-pdftex.exe...
2018-10-05 02:34:14,525+0200 INFO makefmt - running: miktex-pdftex.exe --miktex-enable-installer --initialize --interaction=nonstopmode --halt-on-error --alias=pdflatex --job-name=pdflatex -tcx=cp227.tcx --enable-etex pdflatex.ini
2018-10-05 02:34:14,920+0200 FATAL miktex-makefmt - miktex-pdftex.exe failed on pdflatex.ini.
2018-10-05 02:34:14,920+0200 FATAL miktex-makefmt - miktex-pdftex.exe failed on pdflatex.ini.
2018-10-05 02:34:14,920+0200 FATAL miktex-makefmt - Info:
2018-10-05 02:34:14,920+0200 FATAL miktex-makefmt - Source:
2018-10-05 02:34:14,920+0200 FATAL miktex-makefmt - Line: 0
2018-10-05 02:36:59,236+0200 INFO miktex-makefmt - starting with command line: miktex-makefmt.exe --engine=pdftex --dest-name=pdflatex --no-dump pdflatex.ini --engine-option=-tcx=cp227.tcx --enable-installer
2018-10-05 02:36:59,259+0200 INFO makefmt - found input file: C:\Programme\MiKTeX_2.9\tex\latex\00miktex\pdflatex.ini
2018-10-05 02:36:59,260+0200 INFO makefmt - Creating the pdflatex format file...
2018-10-05 02:36:59,280+0200 INFO makefmt - Running miktex-pdftex.exe...
2018-10-05 02:36:59,280+0200 INFO makefmt - running: miktex-pdftex.exe --miktex-enable-installer --initialize --interaction=nonstopmode --halt-on-error --alias=pdflatex --job-name=pdflatex -tcx=cp227.tcx --enable-etex pdflatex.ini
2018-10-05 02:36:59,714+0200 FATAL miktex-makefmt - miktex-pdftex.exe failed on pdflatex.ini.
2018-10-05 02:36:59,714+0200 FATAL miktex-makefmt - miktex-pdftex.exe failed on pdflatex.ini.
2018-10-05 02:36:59,714+0200 FATAL miktex-makefmt - Info:
2018-10-05 02:36:59,714+0200 FATAL miktex-makefmt - Source:
2018-10-05 02:36:59,714+0200 FATAL miktex-makefmt - Line: 0
编辑:
好吧,我希望您了解到“简单地重新安装所有内容”并不是解决问题的最佳策略。 miktex 无法创建格式文件,因此您需要找出原因。转到 miktex 控制台,设置 -> 选项卡格式。选择 pdflatex 并单击构建。如果失败,您可能会得到真正的日志文件。 - Ulrike Fischer
这样做完之后,构建失败了,错误信息指的是这个日志initexmf_admin.log:
2018-10-05 02:14:23,267+0200 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6811 (MiKTeX 2.9.6840 64-bit)
2018-10-05 02:14:23,267+0200 INFO initexmf - Operating on the shared (system-wide) MiKTeX setup
2018-10-05 02:14:23,267+0200 INFO initexmf - starting with command line: initexmf --rmfndb --admin --log-file=C:\Programme\MiKTeX_2.9\miktex/config\uninst.log --disable-installer --verbose
2018-10-05 02:14:23,267+0200 INFO initexmf - finishing with exit code 0
2018-10-05 02:14:23,670+0200 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6811 (MiKTeX 2.9.6840 64-bit)
2018-10-05 02:14:23,670+0200 INFO initexmf - Operating on the shared (system-wide) MiKTeX setup
2018-10-05 02:14:23,670+0200 INFO initexmf - starting with command line: initexmf --update-fndb --admin --log-file=C:\Programme\MiKTeX_2.9\miktex/config\uninst.log --disable-installer --verbose
2018-10-05 02:14:23,670+0200 INFO initexmf - Skipping user root directory (C:\Users\user\AppData\Roaming\MiKTeX\2.9)...
2018-10-05 02:14:23,670+0200 INFO initexmf - Skipping user root directory (C:\Users\user\AppData\Local\MiKTeX\2.9)...
2018-10-05 02:14:23,670+0200 INFO initexmf - Creating fndb for common root directory (C:\ProgramData\MiKTeX\2.9)...
2018-10-05 02:14:23,717+0200 INFO initexmf - Creating fndb for common root directory (C:\Programme\MiKTeX_2.9)...
2018-10-05 02:14:38,025+0200 INFO initexmf - finishing with exit code 0
2018-10-05 02:14:38,344+0200 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6811 (MiKTeX 2.9.6840 64-bit)
2018-10-05 02:14:38,344+0200 INFO initexmf - Operating on the shared (system-wide) MiKTeX setup
2018-10-05 02:14:38,344+0200 INFO initexmf - starting with command line: initexmf --force --mklinks --admin --log-file=C:\Programme\MiKTeX_2.9\miktex/config\uninst.log --disable-installer --verbose
2018-10-05 02:14:38,750+0200 INFO initexmf - finishing with exit code 0
2018-10-05 02:14:39,078+0200 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6811 (MiKTeX 2.9.6840 64-bit)
2018-10-05 02:14:39,078+0200 INFO initexmf - Operating on the shared (system-wide) MiKTeX setup
2018-10-05 02:14:39,078+0200 INFO initexmf - starting with command line: initexmf --mkmaps --mklangs --admin --log-file=C:\Programme\MiKTeX_2.9\miktex/config\uninst.log --disable-installer --verbose
2018-10-05 02:14:39,078+0200 INFO initexmf - Creating language.dat, language.dat.lua and language.def...
2018-10-05 02:14:39,141+0200 INFO initexmf - running: mkfntmap --verbose --admin --disable-installer
2018-10-05 02:18:07,080+0200 INFO initexmf - finishing with exit code 0
2018-10-05 02:18:07,395+0200 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6811 (MiKTeX 2.9.6840 64-bit)
2018-10-05 02:18:07,395+0200 INFO initexmf - Operating on the shared (system-wide) MiKTeX setup
2018-10-05 02:18:07,395+0200 INFO initexmf - starting with command line: initexmf --default-paper-size=A4 --admin --log-file=C:\Programme\MiKTeX_2.9\miktex/config\uninst.log --disable-installer --verbose
2018-10-05 02:18:07,442+0200 INFO initexmf - finishing with exit code 0
2018-10-05 02:18:07,754+0200 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6811 (MiKTeX 2.9.6840 64-bit)
2018-10-05 02:18:07,754+0200 INFO initexmf - Operating on the shared (system-wide) MiKTeX setup
2018-10-05 02:18:07,754+0200 INFO initexmf - starting with command line: initexmf --set-config-value=[MPM]AutoInstall=1 --admin --log-file=C:\Programme\MiKTeX_2.9\miktex/config\uninst.log --disable-installer --verbose
2018-10-05 02:18:07,785+0200 INFO initexmf - finishing with exit code 0
2018-10-05 02:18:08,113+0200 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6811 (MiKTeX 2.9.6840 64-bit)
2018-10-05 02:18:08,113+0200 INFO initexmf - Operating on the shared (system-wide) MiKTeX setup
2018-10-05 02:18:08,113+0200 INFO initexmf - starting with command line: initexmf --update-fndb --admin --log-file=C:\Programme\MiKTeX_2.9\miktex/config\uninst.log --disable-installer --verbose
2018-10-05 02:18:08,113+0200 INFO initexmf - Skipping user root directory (C:\Users\user\AppData\Roaming\MiKTeX\2.9)...
2018-10-05 02:18:08,113+0200 INFO initexmf - Skipping user root directory (C:\Users\user\AppData\Local\MiKTeX\2.9)...
2018-10-05 02:18:08,145+0200 INFO initexmf - Creating fndb for common root directory (C:\ProgramData\MiKTeX\2.9)...
2018-10-05 02:18:08,207+0200 INFO initexmf - Creating fndb for common root directory (C:\Programme\MiKTeX_2.9)...
2018-10-05 02:18:22,365+0200 INFO initexmf - finishing with exit code 0
2018-10-05 02:18:22,677+0200 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6811 (MiKTeX 2.9.6840 64-bit)
2018-10-05 02:18:22,677+0200 INFO initexmf - Operating on the shared (system-wide) MiKTeX setup
2018-10-05 02:18:22,677+0200 INFO initexmf - starting with command line: initexmf --register-shell-file-types --admin --log-file=C:\Programme\MiKTeX_2.9\miktex/config\uninst.log --disable-installer --verbose
2018-10-05 02:18:22,724+0200 INFO initexmf - finishing with exit code 0
2018-10-05 02:18:23,096+0200 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6811 (MiKTeX 2.9.6840 64-bit)
2018-10-05 02:18:23,096+0200 INFO initexmf - Operating on the shared (system-wide) MiKTeX setup
2018-10-05 02:18:23,096+0200 INFO initexmf - starting with command line: initexmf --modify-path --admin --log-file=C:\Programme\MiKTeX_2.9\miktex/config\uninst.log --disable-installer --verbose
2018-10-05 02:18:23,269+0200 INFO initexmf - finishing with exit code 0
2018-10-05 02:18:23,597+0200 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6811 (MiKTeX 2.9.6840 64-bit)
2018-10-05 02:18:23,597+0200 INFO initexmf - Operating on the shared (system-wide) MiKTeX setup
2018-10-05 02:18:23,597+0200 INFO initexmf - starting with command line: initexmf --report --admin --log-file=C:\Programme\MiKTeX_2.9\miktex/config\uninst.log --disable-installer --verbose
2018-10-05 02:18:31,263+0200 INFO initexmf - finishing with exit code 0
2018-10-05 09:03:58,226+0200 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.6811 (MiKTeX 2.9.6840 64-bit)
2018-10-05 09:03:58,226+0200 INFO initexmf - Operating on the shared (system-wide) MiKTeX setup
2018-10-05 09:03:58,226+0200 INFO initexmf - starting with command line: initexmf --admin --dump=pdflatex
2018-10-05 09:03:58,241+0200 INFO initexmf - running: miktex-makefmt.exe --engine=pdftex --dest-name=pdflatex --no-dump pdflatex.ini --engine-option=-tcx=cp227.tcx --admin --enable-installer
2018-10-05 09:03:59,101+0200 ERROR initexmf - sub-process error output has been saved to 'C:\ProgramData\MiKTeX\2.9\miktex\log\miktex-makefmt_2018-10-05-090359.out'
2018-10-05 09:03:59,101+0200 FATAL initexmf - The executed process did not succeed.
2018-10-05 09:03:59,101+0200 FATAL initexmf - Info: fileName="C:\Programme\MiKTeX_2.9\miktex\bin\x64\miktex-makefmt.exe", exitCode="1"
2018-10-05 09:03:59,101+0200 FATAL initexmf - Source:
2018-10-05 09:03:59,101+0200 FATAL initexmf - Line: 0
编辑:
该死,看起来 miktex 不再将 pdftex 日志保存在某个地方。在某个空的测试文件夹中打开命令行,然后运行 pdftex --ini --enable-etex pdflatex.ini,这应该会在这个文件夹中写入 pdflatex.log。或者你至少可以在终端中看到它停止的位置。– Ulrike Fischer
生成的pdflatex.log:
2018-10-05 09:45:12,618+0200 INFO pdftex - starting with command line: pdftex --ini --enable-etex pdflatex.ini
2018-10-05 09:45:12,618+0200 INFO pdftex - allowing known shell commands
2018-10-05 09:45:12,618+0200 INFO pdftex - enabling input (output) from (to) processes
2018-10-05 09:45:12,649+0200 FATAL pdftex - Windows API error 5: Zugriff verweigert
2018-10-05 09:45:12,649+0200 FATAL pdftex - Info: path="C:\Programme\MiKTeX_2.9\tex\latex\00miktex\pdflatex.ini"
2018-10-05 09:45:12,649+0200 FATAL pdftex - Source: Libraries\MiKTeX\Core\PathName\PathName.cpp
2018-10-05 09:45:12,649+0200 FATAL pdftex - Line: 156
2018-10-05 09:45:12,665+0200 INFO pdftex - finishing with exit code 1
答案1
该问题已根据 Ulrike Fischer 的最新建议得到解决:
抱歉,我帮不了你。这是你电脑上的一些访问问题。你可以尝试在单用户模式下重新安装某个文件夹 C:\miktex 中的用户帐户。或者尝试使用 texlive。– Ulrike Fischer
我卸载并重新安装它再次。我以管理员身份运行安装程序(就像之前几次一样),但为了安全起见,将默认设置从“适用于所有用户”更改为“仅限此用户”,并将其放入 C:\MiKTeX2.9。现在它又回来运行了!非常感谢!