pdflatex.exe MikTex 和 Texmaker 的奇怪问题

pdflatex.exe MikTex 和 Texmaker 的奇怪问题

当我尝试从 TexMaker 运行 Quick Build 时。我收到错误:

Could not start the command.
pdflatex -synctex=1 -interaction=nonstopmode %.tex

我检查了以确保它C:\Program Files\MiKTeX 2.9\miktex\bin\x64在 mypath 上,并且它pdflatex.exe在那个文件夹中。

我打开命令提示符并运行pdflatex并得到以下输出:

Sorry, but "MiKTeX Configuration Utility" did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  C:/Users/.../AppData/Local/MiKTeX/2.9/miktex/log/initexmf.log

You may want to visit the MiKTeX project page, if you need help.

Sorry, but pdflatex did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  C:/Users/.../AppData/Local/MiKTeX/2.9/miktex/log/pdflatex.log

You may want to visit the MiKTeX project page, if you need help.

我查看了该错误消息中的日志文件,里面的内容如下:

2018-01-18 13:12:46,690-0500 INFO  pdflatex - starting with command line: pdflatex -synctex=1 -interaction=nonstopmode test2.tex
2018-01-18 13:12:46,696-0500 INFO  pdflatex - running 'initexmf' to refresh the file name database
2018-01-18 13:12:46,890-0500 FATAL pdflatex - The executed process did not succeed.
2018-01-18 13:12:46,890-0500 FATAL pdflatex - Info: fileName="C:\Program Files\MiKTeX 2.9\miktex\bin\x64\initexmf.exe", exitCode="1"
2018-01-18 13:12:46,890-0500 FATAL pdflatex - Source: Libraries\MiKTeX\Core\Process\Process.cpp
2018-01-18 13:12:46,890-0500 FATAL pdflatex - Line: 156
2018-01-18 13:12:46,890-0500 INFO  pdflatex - finishing with exit code 1
2018-01-18 13:12:53,694-0500 INFO  pdflatex - starting with command line: pdflatex -synctex=1 -interaction=nonstopmode test2.tex
2018-01-18 13:12:53,701-0500 INFO  pdflatex - running 'initexmf' to refresh the file name database
2018-01-18 13:12:53,911-0500 FATAL pdflatex - The executed process did not succeed.
2018-01-18 13:12:53,911-0500 FATAL pdflatex - Info: fileName="C:\Program Files\MiKTeX 2.9\miktex\bin\x64\initexmf.exe", exitCode="1"
2018-01-18 13:12:53,911-0500 FATAL pdflatex - Source: Libraries\MiKTeX\Core\Process\Process.cpp
2018-01-18 13:12:53,911-0500 FATAL pdflatex - Line: 156
2018-01-18 13:12:53,911-0500 INFO  pdflatex - finishing with exit code 1
2018-01-18 13:16:04,914-0500 INFO  pdflatex - starting with command line: pdflatex -synctex=1 -interaction=nonstopmode test2.tex
2018-01-18 13:16:04,920-0500 INFO  pdflatex - running 'initexmf' to refresh the file name database
2018-01-18 13:16:05,106-0500 FATAL pdflatex - The executed process did not succeed.
2018-01-18 13:16:05,106-0500 FATAL pdflatex - Info: fileName="C:\Program Files\MiKTeX 2.9\miktex\bin\x64\initexmf.exe", exitCode="1"
2018-01-18 13:16:05,106-0500 FATAL pdflatex - Source: Libraries\MiKTeX\Core\Process\Process.cpp
2018-01-18 13:16:05,106-0500 FATAL pdflatex - Line: 156
2018-01-18 13:16:05,106-0500 INFO  pdflatex - finishing with exit code 1
2018-01-18 13:16:17,131-0500 INFO  pdflatex - starting with command line: pdflatex -synctex=1 -interaction=nonstopmode test2.tex
2018-01-18 13:16:17,138-0500 INFO  pdflatex - running 'initexmf' to refresh the file name database
2018-01-18 13:16:17,325-0500 FATAL pdflatex - The executed process did not succeed.
2018-01-18 13:16:17,325-0500 FATAL pdflatex - Info: fileName="C:\Program Files\MiKTeX 2.9\miktex\bin\x64\initexmf.exe", exitCode="1"
2018-01-18 13:16:17,325-0500 FATAL pdflatex - Source: Libraries\MiKTeX\Core\Process\Process.cpp
2018-01-18 13:16:17,325-0500 FATAL pdflatex - Line: 156
2018-01-18 13:16:17,325-0500 INFO  pdflatex - finishing with exit code 1
2018-01-18 13:17:05,511-0500 INFO  pdflatex - starting with command line: pdflatex

有人知道这是什么意思吗?我只是想在我的计算机上安装 MikTex 并使用 TexMaker。

相关内容