我正在尝试在新电脑上全新安装 MiKTex 和 TeXstudio 来编译一些 tex 文档。我的文件在其他电脑上编译没有问题。但当我尝试在这里编译它们时,它们会产生一个神秘的错误。控制台只是显示
抱歉,pdflatex.exe 未能成功。希望日志文件包含让 MiKTeX 再次运行的信息:C:\Users\ajaym\AppData\Local\MiKTeX\miktex\log\pdflatex.log
当我查阅日志文件时,我发现了下面的摘录。我对 pdflatex 的内部工作原理并不特别了解。似乎错误是在“Libraries\MiKTeX\TeXAndFriends\include\miktex/C4P/C4P.h:255”中生成的,但消息本身对解决问题没有多大帮助。
我不得不假设问题出在我的系统或我的 MiKTex 安装上(正如我所说,这些文件在我的另一台计算机上编译没有问题)。但我尝试重新安装 MiKTex 和 TeXstudio(安装程序建议的私人安装而不是管理员安装)。我正在运行最新版本的 Windows 10(成功编译文件的计算机也是如此)。说实话,我不知道从哪里开始。我所有的谷歌搜索都没有结果。
感谢您提供的任何帮助——Ajay Shenoy
2020-06-29 13:06:02,720-0700 INFO pdflatex - this process (18684) started by 'texstudio' with command line: pdflatex.exe -synctex=1 -interaction=nonstopmode landtenure20200619.tex
2020-06-29 13:06:02,727-0700 INFO pdflatex - allowing known shell commands
2020-06-29 13:06:02,727-0700 INFO pdflatex - enabling input (output) from (to) processes
2020-06-29 13:06:03,319-0700 FATAL pdflatex.core - Read operation failed.
2020-06-29 13:06:03,319-0700 FATAL pdflatex.core - Data: path="", read="0", n="1"
2020-06-29 13:06:03,319-0700 FATAL pdflatex.core - Source: Libraries\MiKTeX\TeXAndFriends\include\miktex/C4P/C4P.h:255
2020-06-29 13:06:03,320-0700 FATAL pdflatex - Read operation failed.
2020-06-29 13:06:03,320-0700 FATAL pdflatex - Info: path="", read="0", n="1"
2020-06-29 13:06:03,320-0700 FATAL pdflatex - Source: Libraries\MiKTeX\TeXAndFriends\include\miktex/C4P/C4P.h
2020-06-29 13:06:03,320-0700 FATAL pdflatex - Line: 255
2020-06-29 13:06:03,320-0700 INFO pdflatex - this process (18684) finishes with exit code 1
2020-06-29 13:06:03,320-0700 WARN miktex.core - still open: landtenure20200619.tex
2020-06-29 13:06:03,320-0700 WARN miktex.core - still open: landtenure20200619.pdf
2020-06-29 13:06:03,320-0700 WARN miktex.core - still open: landtenure20200619.out
2020-06-29 13:06:03,320-0700 WARN miktex.core - still open: landtenure20200619.log
2020-06-29 13:06:03,320-0700 WARN miktex.core - still open: C:\Users\ajaym\AppData\Local\Programs\MiKTeX\fonts/vf/adobe/utopia\putr8c.vf
2020-06-29 13:06:03,320-0700 WARN miktex.core - still open: landtenure20200619.aux
2020-06-29 13:06:03,724-0700 INFO pdflatex - this process (12796) started by 'texstudio' with command line: pdflatex.exe -synctex=1 -interaction=nonstopmode landtenure20200619.tex
2020-06-29 13:06:03,732-0700 INFO pdflatex - allowing known shell commands
2020-06-29 13:06:03,732-0700 INFO pdflatex - enabling input (output) from (to) processes
2020-06-29 13:06:04,309-0700 FATAL pdflatex.core - Read operation failed.
2020-06-29 13:06:04,309-0700 FATAL pdflatex.core - Data: path="", read="0", n="1"
2020-06-29 13:06:04,309-0700 FATAL pdflatex.core - Source: Libraries\MiKTeX\TeXAndFriends\include\miktex/C4P/C4P.h:255
2020-06-29 13:06:04,309-0700 FATAL pdflatex - Read operation failed.
2020-06-29 13:06:04,309-0700 FATAL pdflatex - Info: path="", read="0", n="1"
2020-06-29 13:06:04,309-0700 FATAL pdflatex - Source: Libraries\MiKTeX\TeXAndFriends\include\miktex/C4P/C4P.h
2020-06-29 13:06:04,309-0700 FATAL pdflatex - Line: 255
2020-06-29 13:06:04,309-0700 INFO pdflatex - this process (12796) finishes with exit code 1
2020-06-29 13:06:04,310-0700 WARN miktex.core - still open: landtenure20200619.tex
2020-06-29 13:06:04,310-0700 WARN miktex.core - still open: landtenure20200619.log
2020-06-29 13:06:04,310-0700 WARN miktex.core - still open: landtenure20200619.pdf
2020-06-29 13:06:04,310-0700 WARN miktex.core - still open: C:\Users\ajaym\AppData\Local\Programs\MiKTeX\fonts/vf/adobe/utopia\putr8c.vf
2020-06-29 13:06:04,310-0700 WARN miktex.core - still open: landtenure20200619.out
2020-06-29 13:06:04,310-0700 WARN miktex.core - still open: landtenure20200619.aux
2020-06-29 13:06:04,506-0700 INFO pdflatex - this process (18964) started by 'texstudio' with command line: pdflatex.exe -synctex=1 -interaction=nonstopmode landtenure20200619.tex
2020-06-29 13:06:04,513-0700 INFO pdflatex - allowing known shell commands
2020-06-29 13:06:04,513-0700 INFO pdflatex - enabling input (output) from (to) processes
2020-06-29 13:06:05,108-0700 FATAL pdflatex.core - Read operation failed.
2020-06-29 13:06:05,108-0700 FATAL pdflatex.core - Data: path="", read="0", n="1"
2020-06-29 13:06:05,108-0700 FATAL pdflatex.core - Source: Libraries\MiKTeX\TeXAndFriends\include\miktex/C4P/C4P.h:255
2020-06-29 13:06:05,108-0700 FATAL pdflatex - Read operation failed.
2020-06-29 13:06:05,108-0700 FATAL pdflatex - Info: path="", read="0", n="1"
2020-06-29 13:06:05,108-0700 FATAL pdflatex - Source: Libraries\MiKTeX\TeXAndFriends\include\miktex/C4P/C4P.h
2020-06-29 13:06:05,108-0700 FATAL pdflatex - Line: 255
2020-06-29 13:06:05,108-0700 INFO pdflatex - this process (18964) finishes with exit code 1
2020-06-29 13:06:05,109-0700 WARN miktex.core - still open: landtenure20200619.tex
2020-06-29 13:06:05,109-0700 WARN miktex.core - still open: landtenure20200619.log
2020-06-29 13:06:05,109-0700 WARN miktex.core - still open: C:\Users\ajaym\AppData\Local\Programs\MiKTeX\fonts/vf/adobe/utopia\putr8c.vf
2020-06-29 13:06:05,109-0700 WARN miktex.core - still open: landtenure20200619.pdf
2020-06-29 13:06:05,109-0700 WARN miktex.core - still open: landtenure20200619.out
2020-06-29 13:06:05,109-0700 WARN miktex.core - still open: landtenure20200619.aux
答案1
看起来就在几个小时前,答案已经发布在这里了:https://github.com/MiKTeX/miktex/issues/568#issuecomment-651122378
听起来这个问题也将在未来的更新中得到解决。
阿贾伊