我已经通过自制软件安装了octave和gcc。安装都没有返回任何错误,但是当我尝试运行octave时,我收到此错误:
dyld: Library not loaded: /usr/local/Cellar/gfortran/4.8.2/gfortran/lib/libgfortran.3.dylib
Referenced from: /usr/local/lib/libqrupdate.1.dylib
Reason: image not found
Trace/BPT trap: 5
我已经完成了brew更新,升级等等。 Brew医生只返回关于man目录所有权的消息,我认为这些消息是无关的
Warning: Some directories in /usr/local/share/man aren't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably `chown` them:
/usr/local/share/man/de
/usr/local/share/man/de/man1
有什么想法吗?我见过的其他帖子建议取消链接/重新链接gcc,但这对我来说没有任何改变。
答案 0 :(得分:3)
brew重新安装qrupdate
更新到gcc 4.9.1后,路径已更改。
答案 1 :(得分:2)
直到我做完
之后,才得到OSX小牛队的fortranbrew重新安装gcc49 --enable-fortran
这给了我/usr/local/bin/gfortran-4.9。然后我手动为它创建了一个符号链接
sudo ln -s /usr/local/bin/gfortran-4.9 / usr / local / bin / gfortran
答案 2 :(得分:0)
经过多次寻找解决方案后,这对我有用:
brew install gcc49 --with-fortran
我发现这个安装了gfortran49的“gfortran-4.9”和“gfortran”与我之前安装的gfortran48相关联。因此,我回去并卸载了gfortran48:
brew remove gfortran
然后我重新安装了gcc49:
brew reinstall gcc49 --with-fortran
似乎已经奏效。