Texworks 未编译!

Texworks 未编译!

我已经在新电脑上安装了 MikTeX 和 Texworks,但是当我在这里运行我的项目时它不工作......

我收到的错误消息如下:

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

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

  C:/Users/Ray/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.

Sorry, but C:\Program Files\MiKTeX 2.9\miktex\bin\miktex-pdftex.exe did not succeed.

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

  C:/Users/Ray/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.

initexmf.log 的日志文件消息显示如下:

2015-10-28 12:20:00,463-0200 INFO  initexmf - starting: MiKTeX Configuration >Utility 2.9.5700 (MiKTeX 2.9)
2015-10-28 12:20:00,471-0200 INFO  initexmf - Registering root directories...
2015-10-28 12:20:08,346-0200 INFO  initexmf - starting: MiKTeX Configuration >Utility 2.9.5700 (MiKTeX 2.9)
2015-10-28 12:20:08,355-0200 INFO  initexmf - Skipping user root directory (C:\Users\Ray\AppData\Roaming\MiKTeX\2.9)...
2015-10-28 12:20:08,355-0200 INFO  initexmf - Skipping user root directory (C:\Users\Ray\AppData\Local\MiKTeX\2.9)...
2015-10-28 12:20:08,357-0200 INFO  initexmf - Creating fndb for common root directory (C:\ProgramData\MiKTeX\2.9)...
2015-10-28 12:20:08,386-0200 INFO  initexmf - Creating fndb for common root directory ("C:\Program Files\MiKTeX 2.9")...
2015-10-28 12:20:14,295-0200 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-28 12:20:14,315-0200 INFO  initexmf - Making format links...
2015-10-28 12:20:14,516-0200 INFO  initexmf - Making script links...
2015-10-28 12:20:14,918-0200 INFO  initexmf -   C:\Program Files\MiKTeX 2.9\miktex/bin\miktex-taskbar-icon.exe
2015-10-28 12:20:14,988-0200 INFO  initexmf -   C:\Program Files\MiKTeX 2.9\miktex/bin\miktex-update.exe
2015-10-28 12:20:16,475-0200 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-28 12:20:16,486-0200 INFO  initexmf - Creating language.dat, language.dat.lua and language.def...
2015-10-28 12:20:16,587-0200 INFO  initexmf - running: mkfntmap --verbose --admin
2015-10-28 12:22:31,682-0200 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-28 12:22:33,043-0200 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-28 12:22:34,393-0200 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-28 12:22:34,425-0200 INFO  initexmf - Skipping user root directory (C:\Users\Ray\AppData\Roaming\MiKTeX\2.9)...
2015-10-28 12:22:34,425-0200 INFO  initexmf - Skipping user root directory (C:\Users\Ray\AppData\Local\MiKTeX\2.9)...
2015-10-28 12:22:34,429-0200 INFO  initexmf - Creating fndb for common root directory (C:\ProgramData\MiKTeX\2.9)...
2015-10-28 12:22:34,467-0200 INFO  initexmf - Creating fndb for common root directory ("C:\Program Files\MiKTeX 2.9")...
2015-10-28 12:22:44,432-0200 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-28 12:22:46,896-0200 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-28 12:22:48,890-0200 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-28 12:25:05,015-0200 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-28 12:25:05,031-0200 FATAL initexmf - Windows API error 32: O arquivo já está sendo usado por outro processo
015-10-28 12:25:05,031-0200 FATAL initexmf - Info: C:\Users\Ray\AppData\Local\MiKTeX\2.9\miktex/data/le\6c9a5fc74f51ce24ff6764843c117e40.fndb
2015-10-28 12:25:05,031-0200 FATAL initexmf - Source: Libraries\MiKTeX\Core\win\winFile.cpp
2015-10-28 12:25:05,031-0200 FATAL initexmf - Line: 520
2015-10-28 12:25:07,069-0200 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-28 12:25:07,069-0200 FATAL initexmf - Windows API error 32: O arquivo já está sendo usado por outro processo.

2015-10-28 12:25:07,069-0200 FATAL initexmf - Info: C:\Users\Ray\AppData\Local\MiKTeX\2.9\miktex/data/le\6c9a5fc74f51ce24ff6764843c117e40.fndb
2015-10-28 12:25:07,069-0200 FATAL initexmf - Source: Libraries\MiKTeX\Core\win\winFile.cpp
2015-10-28 12:25:07,069-0200 FATAL initexmf - Line: 520
2015-10-28 12:28:56,691-0200 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-28 12:28:56,785-0200 FATAL initexmf - Windows API error 32: O arquivo já está sendo usado por outro processo.

2015-10-28 12:28:56,785-0200 FATAL initexmf - Info: C:\Users\Ray\AppData\Local\MiKTeX\2.9\miktex/data/le\6c9a5fc74f51ce24ff6764843c117e40.fndb
2015-10-28 12:28:56,785-0200 FATAL initexmf - Source: Libraries\MiKTeX\Core\win\winFile.cpp
2015-10-28 12:28:56,785-0200 FATAL initexmf - Line: 520
2015-10-28 12:40:20,070-0200 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.5700 (MiKTeX 2.9)
2015-10-28 12:40:20,083-0200 FATAL initexmf - Windows API error 32: O arquivo já está sendo usado por outro processo.

2015-10-28 12:40:20,083-0200 FATAL initexmf - Info: C:\Users\Ray\AppData\Local\MiKTeX\2.9\miktex/data/le\6c9a5fc74f51ce24ff6764843c117e40.fndb
2015-10-28 12:40:20,083-0200 FATAL initexmf - Line: 520
2015-10-28 12:40:20,083-0200 FATAL initexmf - Source: Libraries\MiKTeX\Core\win\winFile.cpp

miktex-pdftex.log 的日志消息如下所示:

2015-10-28 12:25:06,473-0200 INFO  miktex-pdftex - running 'initexmf --quiet --update-fndb' to refresh the file name database
2015-10-28 12:25:07,106-0200 FATAL miktex-pdftex - The operation failed for some reason.
2015-10-28 12:25:07,106-0200 FATAL miktex-pdftex - Info: C:\Program Files\MiKTeX 2.9\miktex\bin\initexmf.exe
2015-10-28 12:25:07,106-0200 FATAL miktex-pdftex - Source: Libraries\MiKTeX\Core\Process.cpp
2015-10-28 12:25:07,107-0200 FATAL miktex-pdftex - Line: 290
2015-10-28 12:28:55,832-0200 INFO  miktex-pdftex - running 'initexmf --quiet --update-fndb' to refresh the file name database
2015-10-28 12:28:56,816-0200 FATAL miktex-pdftex - The operation failed for some reason.
2015-10-28 12:28:56,816-0200 FATAL miktex-pdftex - Info: C:\Program Files\MiKTeX 2.9\miktex\bin\initexmf.exe
2015-10-28 12:28:56,816-0200 FATAL miktex-pdftex - Source: Libraries\MiKTeX\Core\Process.cpp
2015-10-28 12:28:56,816-0200 FATAL miktex-pdftex - Line: 290
2015-10-28 12:40:19,464-0200 INFO  miktex-pdftex - running 'initexmf --quiet --update-fndb' to refresh the file name database
2015-10-28 12:40:20,105-0200 FATAL miktex-pdftex - The operation failed for some reason.
2015-10-28 12:40:20,105-0200 FATAL miktex-pdftex - Info: C:\Program Files\MiKTeX 2.9\miktex\bin\initexmf.exe
2015-10-28 12:40:20,105-0200 FATAL miktex-pdftex - Source: Libraries\MiKTeX\Core\Process.cpp
2015-10-28 12:40:20,105-0200 FATAL miktex-pdftex - Line: 290

我不知道发生了什么,我该怎么做才能解决这个问题?

答案1

关闭 TexWorks,删除C:\Users\$user_name$\AppData\Local\MiKTeX\2.9\miktex\data\le所有 .fndb 文件。重新打开 TexWorks,编译应该不会出现问题。

用您的用户名替换 $user_name$。

答案2

我也是新用户,在尝试编译教程中的示例时,我得到了完全相同的错误消息。我真的觉得这个安装程序有问题。我删除了 .fndb 文件(正如某人提到的),最初的错误得到了解决,但是当尝试编译同事的文件时,在同一个根文件夹中,而我现在确实在他的计算机上运行它,只会呈现一连串的错误消息。人们告诉我这个系统是排版最强大的。好吧,我的第一印象不是最好的。

是我做错了什么吗,还是 Basic MikTeX 2.9.5721 安装程序中存在一个大错误?

相关内容