After samtools is installed with conda, there is always an error that the shared library is missing. Even if you can use samtools when you just installed it, but installing other related software in the same environment later, there may be conflicts, resulting in library replacement, and thus an error.
To avoid this situation, it may be best to give samtools a separate environment. But I don’t like this. My habit is to build an environment only after doing one thing. Otherwise, there are too many environments and I have forgotten it myself.
Many online answers analyzed the reasons and said: The version of samtools is above 1.9, but the version of samtools installed by conda is still 1.7. So it is recommended to install version 1.9 mandatory:conda install -c bioconda samtools=1.9 --force-reinstall
This answer may work for some people. But in fact, conda is already over 1.9:conda search samtools
The version I installed is 1.10 by default, and this library is still missing. In short, there is still a mismatch in the version of the dependent library.
This issue has many issues on github, such as libtinfow.so.5
The developer recommends soft linking from elsewhere (downgrade).
For example, my samtools lacks libcrypto.so.1.0.0, libncurses.so.5, libtinfow.so.5.
First find the same dependent libraries of other software, and the soft link can be the above name.
find ./ -name "libtinfow*"
ln -s ../../predict/lib/libtinfow.so.6 libtinfow.so.5
Other missing libraries are similar, if they fail, you can try a few more. There is not much difference between adjacent versions.
ln -s libcrypto.so.1.1 libcrypto.so.1.0.0
ln -s /lib64/libbz2.so.1 /usr/lib64/libbz2.so.1.0
Read More:
- [Solved] curl error while loading shared libraries libcrypto.so.1.0.0
- ./popins2: error while loading shared libraries: libbifrost.so: cannot open shared object file: No such file or directory
- error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory
- [Solved] ./my_cmake_exe: error while loading shared libraries: libswresample.so.4: cannot open shared object file: No such file or directory
- [619]libgtk-3.so.0 or libXt.so.6: cannot open shared object file: No such file or directory
- [Solved] error while loading shared libraries: libopencv_highgui.so.3.4: cannot open shared object file…
- ffmpeg:error while loading shared libraries: libopenh264.so.5
- DM Install Error: error while loading shared libraries: libdmnsort.so:
- [Solved] error: Failed dependencies libcrypto.so.10()(64bit) is needed, libssl.so.10()(64bit) is needed
- [Solved] import mxnet Error: OSError: libcudart.so.8.0: cannot open shared object file: No such file or directory
- [Solved] import cv2 Error: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- [Solved] java.lang.UnsatisfiedLinkError: dlopen failed: /lib/arm64/libc++_shared.so not found
- [Easy Solution] flutter Run Error: library “libflutter.so“ not found
- [Solved] Non-fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: library “libmmkv.so“ not found
- [Solved] mongodb Install Error: mongod: error while loading shared libraries
- ImportError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.23‘ not found
- SAP: How to Solve error Message Number SO322
- [Solved] Error PAM in lightdm startup_ Kwallet (5). So does not exist
- How to Solve Svn upload so File Error
- Some problems encountered in the initial construction of Ant Design Pro project, such as cross Env, webpack and so on