今年夏天,我在电脑上安装了一块新硬盘,现在我正尝试在上面安装 MiKTeX。使用旧硬盘时没有出现任何问题。我的操作系统是 Windows 8.1。我正尝试使用 pdfLaTeX 编译以下非常基本的文件:
\documentclass{article}
\begin{document}
hi
\end{document}
这是我收到的第一个错误:
Sorry, but "MiKTeX Configuration Utility" did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:/Users/Tyler/AppData/Local/MiKTeX/2.9/miktex/log/initexmf.log
You may want to visit the MiKTeX project page (http://miktex.org), if you need help.
日志中有以下错误:
2015-09-03 22:23:51,625-0400 INFO initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9 64-bit)
2015-09-03 22:23:51,631-0400 FATAL initexmf - Windows API error 32: The process cannot access the file because it is being used by another process.
2015-09-03 22:23:51,631-0400 FATAL initexmf - Info: C:\Users\Tyler\AppData\Local\MiKTeX\2.9\miktex/data/le\1e0c0e04cb3be262fbb8e6e7ace14b67.fndb
2015-09-03 22:23:51,631-0400 FATAL initexmf - Source: Libraries\MiKTeX\Core\win\winFile.cpp
2015-09-03 22:23:51,631-0400 FATAL initexmf - Line: 520
第二个错误:
Sorry, but C:\Program Files\MiKTeX 2.9\miktex\bin\x64\miktex-pdftex.exe did not succeed.
The log file hopefully contains the information to get MiKTeX going again:
C:/Users/Tyler/AppData/Local/MiKTeX/2.9/miktex/log/miktex-pdftex.log
You may want to visit the MiKTeX project page (http://miktex.org), if you need help.
日志中有以下错误:
2015-09-03 22:16:18,715-0400 INFO miktex-pdftex - running 'initexmf --quiet --update-fndb' to refresh the file name database
2015-09-03 22:16:18,746-0400 FATAL miktex-pdftex - The operation failed for some reason.
2015-09-03 22:16:18,746-0400 FATAL miktex-pdftex - Info: C:\Program Files\MiKTeX 2.9\miktex\bin\x64\initexmf.exe
2015-09-03 22:16:18,746-0400 FATAL miktex-pdftex - Source: Libraries\MiKTeX\Core\Process.cpp
2015-09-03 22:16:18,746-0400 FATAL miktex-pdftex - Line: 290
我尝试过的事情:
- 卸载并重新安装 MiKTeX
- 下载所有名称以 miktex 开头的包(这是另一个线程中其他人使用的解决方案)
- 尝试编译时,除了 TeXworks 之外没有打开其他任何程序
- 在任务管理器中寻找可能与 MiKTeX 相关的进程(我没有找到)
我该如何避免这些错误?如果我的格式不正确,我深表歉意;这是我的第一个 stackexchange 问题。感谢您的帮助。
答案1
关闭纺织品工厂。
在其他编辑器或命令行中编译您的文档,以便 miktex 可以执行它想要执行的任何维护任务。有一个错误报告称 texworks 目前会干扰 miktex:http://sourceforge.net/p/miktex/bugs/2394/。
这个错误不应该影响以后的正常编译。