Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

libssl.so.10: cannot open shared object file: No such file or directory

I am trying to install and use a binary package of a DB software but after setting my environment variables in ~/.profile as following:

export LD_LIBRARY_PATH=/usr/local/DB/lib:$LD_LIBRARY_PATH
export PATH=/usr/local/DB/bin:$PATH
export Data=/path/to/make/db_cluster

I am getting the following error:

libssl.so.10: cannot open shared object file: No such file or directory

Then I used the following instructions:

sudo apt-get update
sudo apt-get install libssl1.0.0 libssl-dev

cd /lib/x86_64-linux-gnu
sudo ln -s libssl.so.1.0.0 libssl.so.10
sudo ln -s libcrypto.so.1.0.0 libcrypto.so.10

but still getting errors regarding it when using for example initdb:

initdb:/lib/x86_64-linux-gnu:libssl.so.10 : versio 'libssl.so.10' not found: (required by home/user/dbfolder/lib/libpq.so.5)

Any help will be appreciate it.

like image 713
Sam Avatar asked Dec 01 '22 09:12

Sam


1 Answers

On CentOS 8 the missing lib is included in the compat-openssl10 package, just run:

yum install compat-openssl10

And all works fine...

like image 142
Christin Gruber Avatar answered Dec 04 '22 04:12

Christin Gruber