本文介绍了由于dyld:Library未加载,无法编译fortran的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 〜$ gfortran hello.f 
dyld:库未加载:/usr/local/lib/libcloog-isl.4.dylib
引用自:/ usr / local / Cellar / gcc / 4.9.2 / libexec / gcc / x86_64-apple-darwin14.0.0 / 4.9.2 / f951
原因:找不到图像
gfortran:内部编译器错误:跟踪/ BPT陷阱:5(程序f951)
中止陷阱:6

我刚刚安装了 gcc 使用by brew 并根据错误信息如何解决这个问题?

对不起,我必须回答我的问题,因为我只是通过重新安装 cloog



Commmand:


  brew rm cloog 
brew安装cloog

希望得到这个帮助!对于一些人有像我这样的问题。



我认为这个问题与升级Mac OSX Yosemite有关,并且也是 GCC ,因为如果你想安装 gfortran 您只需键入 brew install gcc brew install gfortran ,注意到gfortran已经包含在gcc的安装包中。

~$ gfortran hello.f
dyld: Library not loaded: /usr/local/lib/libcloog-isl.4.dylib
  Referenced from: /usr/local/Cellar/gcc/4.9.2/libexec/gcc/x86_64-apple-darwin14.0.0/4.9.2/f951
  Reason: image not found
gfortran: internal compiler error: Trace/BPT trap: 5 (program f951)
Abort trap: 6

I just installed gcc using by brew and according to the error message how to solve this problem?

解决方案

Sorry, I have to answer my question because i just figured out my problem by just reinstall cloog

Commmand:

brew rm cloog
brew install cloog

Hope this help! for some people have a problem like me.

I think this problem is related to upgrading of Mac OSX Yosemite and also a GCC because nowadays if you want to install gfortran you just type brew install gcc not brew install gfortran, brew notes that gfortran was included to gcc for installation package already.

这篇关于由于dyld:Library未加载,无法编译fortran的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-25 11:07