Error while loading shared libraries: libhdf5_fortran.so.8

Bug/problem reports for any of the GYRE executables (gyre_ad, gyre_nad, etc)
Post Reply
Benard
Posts: 5
Joined: Fri Feb 05, 2016 5:02 am

Error while loading shared libraries: libhdf5_fortran.so.8

Post by Benard » Tue Dec 08, 2020 5:28 am

Hello,

I installed Gyre successfully. However, when trying to run it on the cluster, it gives the error below

>error while loading shared libraries: libhdf5_fortran.so.8: cannot open shared object file: No such >file or directory

In the our lib64 folder, I have the libhdf5_fortran.so, so I thought this would work if I set a path to this file in my .bashrc file as

>export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/libhdf5_fortran.so

but no success with this. Could you please guide me on how to work around this?

Thank you.

Cheers,
Benard

User avatar
warrick
Posts: 84
Joined: Wed Aug 28, 2013 2:47 am

Re: Error while loading shared libraries: libhdf5_fortran.so.8

Post by warrick » Tue Dec 08, 2020 8:45 am

Hi Benard,

The HDF5 library is provided with the SDK so you shouldn't need to add system paths to find it. On our cluster, I add the SDK paths to LIBRARY_PATH and LD_LIBRARY_PATH, for which I use:

Code: Select all

export LIBRARY_PATH="$MESASDK_ROOT/lib64:$MESASDK_ROOT/lib:$LIBRARY_PATH"
export LD_LIBRARY_PATH="$MESASDK_ROOT/lib64:$MESASDK_ROOT/lib:$LD_LIBRARY_PATH"
I haven't tested if these are still necessary but at some point I needed them and everything still works!

If your cluster uses modules to load software, try to load your modules before you initalise the SDK, because I think the module system can mess up the SDK path variables.

Cheers,
Warrick

Benard
Posts: 5
Joined: Fri Feb 05, 2016 5:02 am

Re: Error while loading shared libraries: libhdf5_fortran.so.8

Post by Benard » Wed Dec 09, 2020 9:40 am

Hi Warrick,

Many thanks. This now works without issues.

Cheers,
Benard

Post Reply