【问题标题】:homebrew octave can't find gfortran in mavericks自制八度在小牛队中找不到gfortran
【发布时间】:2014-07-05 22:12:29
【问题描述】:

我已经通过自制软件安装了 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 Doctor 只返回关于我认为无关的 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,但这对我来说没有任何改变。

【问题讨论】:

    标签: octave homebrew gfortran


    【解决方案1】:

    brew 重新安装 qrupdate

    更新到 gcc 4.9.1 后,路径发生了变化。

    【讨论】:

      【解决方案2】:

      我没有在 OSX mavericks 上使用 fortran,直到我这样做了

      brew reinstall gcc49 --enable-fortran

      这给了我 /usr/local/bin/gfortran-4.9。然后我手动为它创建了一个符号链接

      sudo ln -s /usr/local/bin/gfortran-4.9 /usr/local/bin/gfortran

      【讨论】:

        【解决方案3】:

        在寻找解决方案后,这对我有用:

        brew install gcc49 --with-fortran
        

        我发现此安装的 gfortran49 为“gfortran-4.9”,而“gfortran”与我之前安装的 gfortran48 相关。因此,我返回并卸载了 gfortran48:

        brew remove gfortran
        

        然后我重新安装了gcc49:

        brew reinstall gcc49 --with-fortran
        

        似乎奏效了。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2014-01-24
          • 1970-01-01
          • 2013-11-09
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多