gfortran: internal compiler error: Abort trap: 6 signal terminated program f951

gfortran: internal compiler error: Abort trap: 6 signal terminated program f951

我正在 MAC 上使用 Fortran。一切正常,但是当我开始使用 brew 安装 python 或其他程序时,一切都开始崩溃,因为我认为有几个文件已从其原始位置移动,并且可能有些库是混合的。我在 Internet 上阅读了如何解决我的错误,但我做不到。当我启动 gfortran

时,我会 post 低于我发现的错误
dyld: Library not loaded: /usr/local/opt/isl/lib/libisl.23.dylib
  Referenced from: /usr/local/Cellar/gcc/10.2.0_2/libexec/gcc/x86_64-apple-darwin17/10.2.0/f951
  Reason: image not found
gfortran: internal compiler error: Abort trap: 6 signal terminated program f951
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://github.com/Homebrew/homebrew-core/issues> for instructions. 

我解决了我的问题。通常在 MAC 上,当您尝试安装其他程序,例如 python、ipython 或其他程序时,您的程序(如 gfortran(与 gcc 连接)可能无法再工作,给出一个上面我指定的错误消息。这告诉你没有找到 gfortran 的库。假设我不是编程专家,我建议先输入 brew doctor 来解决类似的问题,这样您就可以看到出现了哪种错误。在我的例子中,发现 gfortran 库的 link 没有连接。所以我完成了 brew unlinkbrew instal gcc 然后 brew link。这意味着丢失的 link 再次稳定下来。我也建议看看 Homebrew GitHub 论坛 (https://github.com/Homebrew/homebrew-core/issues),可以给出更有针对性的答案