Octave 4.2.1 octave-gui:找不到 libgfortran.so.3

Octave 4.2.1 octave-gui : cannot find libgfortran.so.3

我目前在 Archlinux. 中安装 Octave 时遇到问题 我无法在 Arch 中加载 Octave 4.2.1 的当前版本。它显示以下消息 -

/usr/lib/octave/4.2.1/exec/x86_64-pc-linux-gnu/octave-gui: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory

libgfortran.so.3 的这个问题并不少见。这里有两个类似的问题发生在 R 1 and 。如果在 Archlinux 上使用 Octave 的人遇到了这个问题,你能分享一下解决方法吗?谢谢。

从评论中可以明显看出,需要附加参考问题 的解决方案,因为较旧的 GCC 版本通常安装在 Arch Linux 中的方式不同路径。

所以,必须找到旧版本的安装位置,例如

   /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/libgfortran.so.3

(取决于确切的 GCC 版本)

然后将版本添加到 LD_LIBRARY_PATH 或将上述路径中的库符号链接到 /usr/lib64/.

我遇到这个问题是因为我之前从 AUR 安装了 openblas-lapack 以获得更好的八度矩阵乘法性能。将 openblas-lapack 更新到 AUR 中的最新版本对我有用。