MiKTeX 持续在 macOS 上失败

MiKTeX 持续在 macOS 上失败

我正在尝试在新的 macOS 系统上安装 MiKTeX。每次我尝试编译任何 .tex 文件时,都会收到以下错误:

jwalsh23@Jacks-MacBook-Pro-14 $ pdflatex CV.tex
This is pdfTeX, Version 3.141592653-2.6-1.40.24 (MiKTeX 22.1) (preloaded format=pdflatex.fmt)
 restricted \write18 enabled.

Sorry, but pdflatex did not succeed.

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

  /Users/jwalsh23/Library/Application Support/MiKTeX/texmfs/data/miktex/log/pdflatex.log

指定的日志文件包含以下内容:

2022-05-18 19:04:30,819-0400 INFO  pdflatex - this process (3654) started by bash in directory /Users/jwalsh23/Downloads with command line: pdflatex CV.tex
2022-05-18 19:04:30,819-0400 INFO  pdflatex - this is MiKTeX-PDFTEX 4.10.0 (1.40.24) (MiKTeX 22.1)
2022-05-18 19:04:30,819-0400 INFO  pdflatex - allowing known shell commands
2022-05-18 19:04:30,823-0400 INFO  pdflatex - going to create file: pdflatex.fmt
2022-05-18 19:04:30,837-0400 INFO  pdflatex.core - forking...
2022-05-18 19:04:31,168-0400 ERROR pdflatex - /Users/jwalsh23/bin/miktex did not succeed; exitCode: 1
2022-05-18 19:04:31,169-0400 ERROR pdflatex - output:
2022-05-18 19:04:31,169-0400 ERROR pdflatex - 
Sorry, but: The executed process did not succeed.

2022-05-18 19:04:31,169-0400 FATAL pdflatex.core - The memory dump file could not be found.
2022-05-18 19:04:31,169-0400 FATAL pdflatex.core - Data: fileName="pdflatex.fmt"
2022-05-18 19:04:31,169-0400 FATAL pdflatex.core - Source: Libraries/MiKTeX/TeXAndFriends/texmfapp.cpp:717
2022-05-18 19:04:31,169-0400 FATAL pdflatex - The memory dump file could not be found.
2022-05-18 19:04:31,169-0400 FATAL pdflatex - Info: fileName="pdflatex.fmt"
2022-05-18 19:04:31,169-0400 FATAL pdflatex - Source: Libraries/MiKTeX/TeXAndFriends/texmfapp.cpp
2022-05-18 19:04:31,169-0400 FATAL pdflatex - Line: 717
2022-05-18 19:04:31,170-0400 INFO  pdflatex - this process (3654) finishes with exit code 1

我尝试过多次重新安装 MiKTeX,运行miktexsetup cleanup,我尝试过使用管理员安装以及用户安装,但似乎没有任何效果。

答案1

我在更新 MiKTeX 时遇到过一次这个问题。最后我发现你必须给予“miktex console”管理权限。解决办法是:

运行“MiKTeX Console.app”,然后选择操作模式为管理模式而不是用户模式,更新包等等。

然后,该应用程序就应该可以像以前一样运行。

相关内容