On 02/12/2020 15:54, Erwin Pannecoucke wrote:
Hi all,
I also had quite some libraries that were flagged as missing, and
approached it as following:
* In my setup, the coot folder was extracted in /mnt/c/WinCoot_0.9/
* In that folder, I checked if all library dependencies could be
found by executingldd libexec/coot-bin
o You can execute ldd libexec/coot-bin | grep "not found"to get
a list of the ones that are not found
coot --check-libs
o
* For each of those libraries,
1. First tried to see if that library could be found in the lib/
folder of coot
2. If not, I tried to figure out if it was already installed using
the locatecommand
1. for example, if it couldn’t find
libRDKitForceFieldHelpers.so.1, I executed the following command:
locate libRDKitForceFieldHelpers.so
There should absolutely not be any missing RDKit libraries.
2. In that list, I tried to find the last version of
libRDKitForceFieldHelpers.so, which could often be found in
the CCP4 folder or in /lib/x86_64-linux-gnu/or
/usr/lib/x86_64-linux-gnu
2. If it couldn’t be found, I google which package I should install
using apt-get to get that library.
OK but it should only be libpng and libgnomecanvas-2 as Juan Pablo said.
2.
* On my system, coot is apparently only looking in the /usr/lib/folder,
That's not coot's doing, that is the operating system.
* when it can’t find a library. So you have to make a symlink in
/lib/to the library found in the previous step, for example:
o sudo ln -s /mnt/c/WinCoot_0.9/latest/lib/libguile.so.17
/usr/lib/libguile.so.17
o sudo ln -s /usr/local/bin/CCP4/ccp4-7.1/lib/libmmdb2.so
/usr/lib/libmmdb2.so
o …
That's hideous. I had no idea that it was so much of a pain. I don't
know why you need to do this. It was not my plan that you should. Quite
the opposite in fact.
o
* Finally, in the end I got a problem that a library gave a
“relocation error” for another library. It took some time, but I
figured out that this meant that SomeLib-a, which is the coot
folder, is dependent on SomeLib-b, which is in the /usr/libfolder.
To resolve this issue, just remove the SomeLib -a, so that coot
starts looking for it in /usr/lib/to find SomeLib-a , or make a
symlink of /usr/lib/SomeLib to /your/coot/folder/lib/SomeLib.
Good grief.
Paul.
########################################################################
To unsubscribe from the COOT list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=COOT&A=1
This message was issued to members of www.jiscmail.ac.uk/COOT, a mailing list
hosted by www.jiscmail.ac.uk, terms & conditions are available at
https://www.jiscmail.ac.uk/policyandsecurity/