[gmx-users] error while loading shared libraries: libgmx.so.6

Lutz Maibaum lutz.maibaum at gmail.com
Thu Apr 7 20:48:11 CEST 2011


On Apr 6, 2011, at 9:08 PM, Qin Qiao wrote:
> the command I use:
>      g++  test.cpp -o test -I/usr/local/gromacs/include/gromacs -L/usr/local/gromacs/lib -lgmx
>      ./test
> Error:
> ./test: error while loading shared libraries: libgmx.so.6: cannot open shared object file: No such file or directory
> 
> But there's libgmx.so.6 in:
> /usr/local/gromacs/lib/libgmx.so.6
> /usr/local/gromacs/lib/libgmx.so.6.0.0

The operating system doesn't know that it should look in /usr/local/gromacs/lib for the library. Try (if you are using linux):

export LD_LIBRARY_PATH=/usr/local/gromacs/lib
./test

Hope this helps,

  Lutz




More information about the gromacs.org_gmx-users mailing list