Re: error while loading shared libraries: libhdf5.so.0

From: Florian Bürzle <florian.buerzle_at_uni-konstanz.de>
Date: Thu, 6 May 2010 19:32:03 +0200

Hi!

Am 06.05.2010 um 18:26 schrieb Haijun Tian:

> Hi guys,
>
> After installing the gadget2, I tried to get started following users-guide,
>
> mpirun -m mpihost -np 4 ./Gadget2 parameterfiles/cluster.param
>
> but I always get the following errors:
>
> /home/hjtian/myworks/gadget2/Gadget-2.0.6/Gadget2/./Gadget2: error while loading shared libraries: libhdf5.so.0: cannot open shared object file: No such file or directory
>
>
> and then I used
> locate libhdf5.so.0
>
> find libhdf5.so.0 file locates in /usr/lib/libhdf5.so.0
>
> so I modified my .bashrc file to add the enviroment variable like following,
>
> export LD_LIBRARY_PATH=/usr/lib/libhdf5.so.0:$LD_LIBRARY_PATH


Maybe this is not sensible, since a PATH environment variable should point to a directory, not to an individual file - so set it to /usr/lib, and it should work. If not, please post the output of the following commands

ldd Gadget2

echo $LD_LIBRARY_PATH


Cheers
Florian
Received on 2010-05-06 19:32:03

This archive was generated by hypermail 2.3.0 : 2023-01-10 10:01:31 CET