Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos gfortran:内部编译器错误:中止陷阱:6信号终止程序f951_Macos_Fortran_Gfortran - Fatal编程技术网

Macos gfortran:内部编译器错误:中止陷阱:6信号终止程序f951

Macos gfortran:内部编译器错误:中止陷阱:6信号终止程序f951,macos,fortran,gfortran,Macos,Fortran,Gfortran,我正在MAC上使用fortran。一切都正常,但当我开始使用brew安装python或其他程序时,一切都开始崩溃,因为我认为有几个文件已经从原来的位置移走,可能有些库是混合的。我在网上读到如何解决我的错误,但我无法做到这一点。当我启动gfortran dyld: Library not loaded: /usr/local/opt/isl/lib/libisl.23.dylib Referenced from: /usr/local/Cellar/gcc/10.2.0_2/libexec/g

我正在MAC上使用fortran。一切都正常,但当我开始使用brew安装python或其他程序时,一切都开始崩溃,因为我认为有几个文件已经从原来的位置移走,可能有些库是混合的。我在网上读到如何解决我的错误,但我无法做到这一点。当我启动
gfortran

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. 
dyld:Library未加载:/usr/local/opt/isl/lib/libisl.23.dylib
引用自:/usr/local/ceral/gcc/10.2.0_2/libexec/gcc/x86_64-apple-darwin17/10.2.0/f951
原因:找不到图像
gfortran:内部编译器错误:中止陷阱:6信号终止程序f951
请提交完整的bug报告,
如果合适,使用预处理源。
有关说明,请参阅。

我解决了我的问题。通常在MAC上,当您尝试安装其他程序(如python、ipython或其他程序)时,您的程序(如gfortran(与gcc连接)可能无法再工作,并给出一条错误消息,如我上面指定的错误消息。这说明没有找到gfortran的库。在我不是编程专家的前提下,我建议先键入
brew-doctor
来解决类似问题,这样您就可以看到出现了哪些类型的错误。在我的例子中,发现到gfortran库的链接没有连接。因此,我完成了
brew取消链接
brew instal gcc
,然后是
brew链接
。这意味着缺失的环节再次得到稳定。我还建议您看看自制GitHub论坛(),它可以提供更具针对性的答案

您是否尝试重新安装gfortranI已尝试重新安装gfortran和gcc,因为它们已连接,但从未更改!这种情况也发生在我身上(对于Gnuplot等),我通常会为丢失的动态库文件(例如cd/usr/local/opt/isl/lib和ln-s libisl.23.dylib)创建一个符号链接,但不确定它是否适用于最新的MacOS或gfortran…我终于能够解决这个问题了。正如@roygvib所建议的,错误来自于gfortran存在的事实,但是到gfortran库的符号链接不存在。在MAC上解决此问题的方法是,首先启动
brew doctor
。这样可以查看丢失链接的位置,并可以更好地指导错误所在的位置。然后我执行了
brew取消链接
brew instal gcc
,然后执行
brew链接
。这是一种再次稳定缺失环节的方法。我还建议大家看看自制GitHub论坛,它可以给出更具针对性的答案。@VDF我明白了。。从现在起,我将尝试“brew医生”等(当我遇到类似问题时:)顺便说一句,我相信如果您将您的评论作为答案(稍后接受),这将非常有用,这样其他人可以更轻松地获得信息。