Tag Archives: error while loading shared libraries

[Solved] samtools: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file

This problem suddenly appeared when I used samtools today:

copy code
samtools: error while loading shared libraries: libcrypto.so. 1.0 . 0 : cannot open shared object  file

At first, I thought that there was a problem with the conda environment, so I executed:

copy code
conda install anaconda
conda update --all

But it did not solve the problem, so I carefully read the error and found that there may be a problem with libcrypto, and finally solved the problem!

process:

copy code
# Find the location of
 samtools which samtools

My samtools directory: /root/anaconda3/bin/samtools

Enter lib, check if there is libcrypto.so.1.1, and establish a soft connection:

copy code
# enter lib
cd /root/anaconda3/ lib
 ls

# Establish soft connection
ln -s libcrypto.so.1.1 libcrypto.so.1.0.0 _ _ _

problem solved!

error while loading shared libraries [How to Solve]

First, check the dependency of the executor

        >>> ldd [programmer] 
	linux-gate.so.1 =>  (0xf7ef9000)
	libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7eba000)
	libboost_locale.so.1.65.1 => not found
	libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf7d43000)
	libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7ced000)
	libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf7cd0000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7b19000)
	/lib/ld-linux.so.2 (0xf7efb000)

You can see that there are many dependencies, several of which are not found

So the problem is very clear. You can find any dependency and find that it is all under the/lib/i386 Linux GNU/folder. Since you can’t find it, there is no
under this folder

Just put the corresponding dependency package in this location