Page 1 of 1

error while loading shared libraries: libdb-4.7.so: cannot open shared object file: No such file or directory

Posted: 2020/11/21 08:29:35
by marbenoct2019
Hi All,
How to fix this error:
"error while loading shared libraries: libdb-4.7.so: cannot open shared object file: No such file or directory.|
Im using centos7.

Best regards,
Marben

Re: error while loading shared libraries: libdb-4.7.so: cannot open shared object file: No such file or directory

Posted: 2020/11/21 09:14:38
by TrevorH
Run yum provides '*/libdb-4.7.so' and it will tell you what provides that file so then you know what to install.

Re: error while loading shared libraries: libdb-4.7.so: cannot open shared object file: No such file or directory

Posted: 2020/11/21 11:14:29
by marbenoct2019
Hi TrevorH,
IHere is the output of "yum provides '*/libdb-4.7.so'".
[marben@eda ~]$ yum provides '*/libdb-4.7.so'
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.pregi.net
* epel: fedora.ipserverone.com
* extras: mirror.pregi.net
* updates: mirror.pregi.net
compat-db47-4.7.25-28.el7.i686 : The Berkeley DB database 4.7.25 compatibility library
Repo : base
Matched from:
Filename : /usr/lib/libdb-4.7.so



compat-db47-4.7.25-28.el7.x86_64 : The Berkeley DB database 4.7.25 compatibility library
Repo : base
Matched from:
Filename : /usr/lib64/libdb-4.7.so



compat-db47-4.7.25-28.el7.i686 : The Berkeley DB database 4.7.25 compatibility library
Repo : @base
Matched from:
Filename : /usr/lib/libdb-4.7.so


What will I install from the output?
Please help.

Best regards,
Marben

Re: error while loading shared libraries: libdb-4.7.so: cannot open shared object file: No such file or directory

Posted: 2020/11/21 11:40:45
by marbenoct2019
Hi TrevorH,
It works.
I use the command, "yum -y install compat-db47".
And it works like a charm.
Thank you much.

Best regards,
Marben