為什麼 MikTex TeXworks 無法將 Latex 文件轉換為 .pdf?

為什麼 MikTex TeXworks 無法將 Latex 文件轉換為 .pdf?

我根據網路上找到的範例建立了一個基本的 Latex 文件:

\documentclass{article}
\usepackage{booktabs}
\begin{document}

\begin{tabular}
Field Name:&FIRST_FIELD
\end{tabular}
\begin{tabular}
Field Name:&SECOND_FIELD
\end{tabular}

\end{document}

我安裝了最新版本的 Windows 版 MikTex,但每次運行它並從下拉列表中選擇“pdfLatex”並點擊綠色播放按鈕時,我都會收到以下訊息:

抱歉,「MiKTeX 配置實用程式」沒有成功。

日誌檔案希望包含使 MiKTeX 再次運行的資訊:

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

您可能會想造訪 MiKTeX 專案頁面 (http://miktex.org), 如果你需要幫助。

抱歉,但 C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\miktex-pdftex.exe 沒有成功。

日誌檔案希望包含使 MiKTeX 再次運行的資訊:

C:/Users/jonc/AppData/Local/MiKTeX/2.9/miktex/log/miktex-pdftex.log

您可能會想造訪 MiKTeX 專案頁面 (http://miktex.org), 如果你需要幫助。

第一個日誌表明存在權限錯誤,但我不知道哪個文件有問題:

2015-10-14 11:01:23,455+0100 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-14 11:01:23,472+0100 INFO  initexmf - Skipping user root directory (C:\Users\jonc\AppData\Roaming\MiKTeX\2.9)...
2015-10-14 11:01:23,472+0100 INFO  initexmf - Skipping user root directory (C:\Users\jonc\AppData\Local\MiKTeX\2.9)...
2015-10-14 11:01:23,473+0100 INFO  initexmf - Creating fndb for common root directory (C:\ProgramData\MiKTeX\2.9)...
2015-10-14 11:01:23,489+0100 INFO  initexmf - Creating fndb for common root directory ("C:\Program Files (x86)\MiKTeX 2.9")...
2015-10-14 11:01:25,303+0100 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-14 11:01:25,320+0100 INFO  initexmf - Making format links...
2015-10-14 11:01:25,357+0100 INFO  initexmf - Making script links...
2015-10-14 11:01:25,484+0100 INFO  initexmf -   C:\Program Files (x86)\MiKTeX 2.9\miktex/bin\miktex-taskbar-icon.exe
2015-10-14 11:01:25,488+0100 INFO  initexmf -   C:\Program Files (x86)\MiKTeX 2.9\miktex/bin\miktex-update.exe
2015-10-14 11:01:25,582+0100 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-14 11:01:25,597+0100 INFO  initexmf - Creating language.dat, language.dat.lua and language.def...
2015-10-14 11:01:25,618+0100 INFO  initexmf - running: mkfntmap --verbose --admin
2015-10-14 11:01:56,061+0100 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-14 11:01:56,093+0100 FATAL initexmf - Windows API error 32: The process cannot access the file because it is being used by another process.

2015-10-14 11:01:56,093+0100 FATAL initexmf - Info: C:\Users\jonc\AppData\Local\MiKTeX\2.9\miktex/data/le\4d5868e95e95ecff33e8315a05cb58f3.fndb
2015-10-14 11:01:56,093+0100 FATAL initexmf - Source: Libraries\MiKTeX\Core\win\winFile.cpp
2015-10-14 11:01:56,093+0100 FATAL initexmf - Line: 520
2015-10-14 11:01:56,242+0100 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-14 11:01:56,274+0100 FATAL initexmf - Windows API error 32: The process cannot access the file because it is being used by another process.

2015-10-14 11:01:56,274+0100 FATAL initexmf - Info: C:\Users\jonc\AppData\Local\MiKTeX\2.9\miktex/data/le\4d5868e95e95ecff33e8315a05cb58f3.fndb
2015-10-14 11:01:56,274+0100 FATAL initexmf - Source: Libraries\MiKTeX\Core\win\winFile.cpp
2015-10-14 11:01:56,274+0100 FATAL initexmf - Line: 520
2015-10-14 11:02:07,626+0100 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-14 11:02:07,659+0100 FATAL initexmf - Windows API error 32: The process cannot access the file because it is being used by another process.

2015-10-14 11:02:07,659+0100 FATAL initexmf - Info: C:\Users\jonc\AppData\Local\MiKTeX\2.9\miktex/data/le\4d5868e95e95ecff33e8315a05cb58f3.fndb
2015-10-14 11:02:07,659+0100 FATAL initexmf - Source: Libraries\MiKTeX\Core\win\winFile.cpp
2015-10-14 11:02:07,659+0100 FATAL initexmf - Line: 520

我缺什麼?

答案1

MiKTeX Update (Admin)透過從開始功能表重複運行來設法啟動並運行它。我想當我第一次這樣做時,更新軟體找到了一個無法更新的發行商,然後悄悄失敗。

訣竅是繼續運行更新,直到沒有列出需要更新的軟體包。

相關內容