如何解决:./real.exe: error while loading shared libraries: libhdf5hl_fortran.so.100: cannot open shared

简介: 如何解决:./real.exe: error while loading shared libraries: libhdf5hl_fortran.so.100: cannot open shared

在跑WRF的示例飓风模式时遇到一个问题,问题如下:


eba7c488a1894a9f999688c27346d915.png

./real.exe: error while loading shared libraries: libhdf5hl_fortran.so.100: cannot open shared


翻译意思大概指的是:无法找到一个文件或者文件路径。


通过搜索,询问咨询找到以下解决方法:

由于我使用的是学院的Linux系统,所以只需要找到这个文件所在的位置,然后将其路径保存到.zshrc的环境配置中即可。


具体步骤如下:


  • locate libhdf5hl_fortran.so.100 找到文件所在路径
  • 将搜索到的路径复制下来
  • 在.zshrc文件中进行配置,代码配置如下:


export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:你的文件路径位置(不需要加双引号)
##示例如下
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Users/.conda/pkgs/hdf5-1.10.6-hb1b8bf9_0/lib/

保存后,使用source .zshrc命令,进行更新。

cc2a67c945564c9f8faec7615bd6b4f7.png

然后,再次运行 ./real.exe ,发现模式就能正常运行啦

相关文章
|
21天前
|
关系型数据库 MySQL
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file
24 0
|
4月前
|
Ubuntu Linux 编译器
如何解决使用libevent时的共享库加载问题“error while loading shared libraries: libevent-2.1.so.7: cannot open ...“
如何解决使用libevent时的共享库加载问题“error while loading shared libraries: libevent-2.1.so.7: cannot open ...“
122 0
|
5月前
|
NoSQL MongoDB
mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No s
mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No s
149 0
|
5月前
gdalinfo: error while loading shared libraries: libgdal.so.30: cannot open shared object file: No su
gdalinfo: error while loading shared libraries: libgdal.so.30: cannot open shared object file: No su
|
5月前
|
关系型数据库 MySQL
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
|
10月前
|
关系型数据库 MySQL Linux
error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or
error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or
原因及解决办法:error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file
原因及解决办法:error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file
234 0
error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
87 0
|
SQL 关系型数据库 Oracle
error while loading shared libraries: libsqlplus.so 故障解决方法
./sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory
10737 2

热门文章

最新文章