"plumed patch -p" shows "error while loading shared libraries: libplumedKernel.so"

2,769 views
Skip to first unread message

Zhang Cheng

unread,
Nov 1, 2018, 8:46:01 AM11/1/18
to PLUMED users
Dear All,
I already have Gromacs 2018.1 installed on my Ubuntu 16.04. Then I successfully installed plumed:

> ./configure --prefix=/usr/local
> make -j 4
> make doc  (this did not work, but I just ignore it, is that okay?)
> sudo make install

But I got error when typing:
> plumed patch -p
plumed: error while loading shared libraries: libplumedKernel.so: cannot open shared object file: No such file or directory

Can I ask how to solve this? 

Is that correct that I install the Gromacs first, then install the plumed?

Thank you.

Yours sincerely
Cheng

Zhang Cheng

unread,
Nov 1, 2018, 9:55:11 AM11/1/18
to PLUMED users
It works now after "source sourceme.sh"

Giovanni Bussi

unread,
Nov 1, 2018, 9:55:12 AM11/1/18
to plumed...@googlegroups.com
You should add /usr/local/lib to your LD_LIBRARY_PATH (and /usr/local/bin to your PATH)

--
You received this message because you are subscribed to the Google Groups "PLUMED users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plumed-users...@googlegroups.com.
To post to this group, send email to plumed...@googlegroups.com.
Visit this group at https://groups.google.com/group/plumed-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/522d4033-0fad-4212-b0d3-8868639bacd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from Gmail mobile

Giovanni Bussi

unread,
Nov 1, 2018, 10:02:36 AM11/1/18
to plumed...@googlegroups.com
Notice that it this way you will use the compiled plumed and not the installed one. If you now patch gromacs it will point to this plumed library.

The best solution is to set the environment so that the installed plumed is used

--
You received this message because you are subscribed to the Google Groups "PLUMED users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plumed-users...@googlegroups.com.
To post to this group, send email to plumed...@googlegroups.com.
Visit this group at https://groups.google.com/group/plumed-users.

For more options, visit https://groups.google.com/d/optout.

Giovanni Bussi

unread,
Nov 1, 2018, 10:07:35 AM11/1/18
to plumed...@googlegroups.com

Zhang Cheng

unread,
Nov 1, 2018, 10:19:41 AM11/1/18
to PLUMED users
Should I do the below?
export LD_LIBRARY_PATH=/usr/local/lib
export PATH=/usr/local/bin

When I re-open the terminal, and type "plumed patch -p", I can still get the below, does it mean it is already using the installed one not the compiled plumed??

lanselibai@ubuntu:~/Cheng/gromacs-2018.1$ plumed patch -p
PLUMED patching tool

1) amber14     4) gromacs-4.5.7 7) namd-2.9
2) gromacs-2016.5   5) lammps-6Apr13 8) qespresso-5.0.2
3) gromacs-2018.3   6) namd-2.8 9) qespresso-6.2

Giovanni Bussi

unread,
Nov 1, 2018, 10:30:50 AM11/1/18
to plumed...@googlegroups.com
You should not set the variables but rather pre-pend the path to the variables 

To know which plumed you are using type:

which plumed

And to cross check that it is loading the correct plumed library type

plumed info —root

In your case it should print
/usr/local/lib/plumed


For more options, visit https://groups.google.com/d/optout.

Zhang Cheng

unread,
Nov 1, 2018, 10:45:52 AM11/1/18
to PLUMED users
Thank you Giovanni!

Sorry, I am not familiar with it. I got:

lanselibai@ubuntu:~/Cheng/gromacs-2018.1$ which plumed
/usr/local/bin/plumed
lanselibai@ubuntu:~/Cheng/gromacs-2018.1$ plumed info --root
/usr/local/lib/plumed

But how to exactly "pre-pend the path to the variables"?

qingh...@gmail.com

unread,
Nov 1, 2018, 11:06:45 AM11/1/18
to PLUMED users
Hello Cheng,

By setting "export LD_LIBRARY_PATH=/usr/local/lib", you will remove all the other settings to the variable of LD_LIBRARY_PATH,
For pre-pending, you have to set something like: export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

You can also have a check the file of sourceme.sh, there are the standard settings.


Best,
Qinghua

Zhang Cheng

unread,
Nov 1, 2018, 11:19:28 AM11/1/18
to PLUMED users
Thank you Qinghua!

I can see in the sourceme.sh file, it is just as you said.

So should I type the below?
> export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
> export PATH=/usr/local/bin:$PATH
> source sourceme.sh
Reply all
Reply to author
Forward
0 new messages