libhdf5.so.100: 无法打开共享对象文件:没有这样的文件或目录(但是,libhdf5.so.100 在 /usr/local/lib 中)

libhdf5.so.100: cannot open shared object file: No such file or directory (However, libhdf5.so.100 is in /usr/local/lib)

虽然我可以看到 libhdf5.so.100 实际上在 /usr/local/lib 内,但当 运行 八度时我收到以下错误:

bash-4.3$ octave

/usr/local/bin/octave-cli-4.0.2: error while loading shared libraries: libhdf5.so.100: cannot open shared object file: No such file or directory

我自己构建了 Octave 4.0.2。

我将 /usr/local/lib 行添加到 /etc/ld.so.conf,然后是 运行 sudo ldconfig。问题已解决。