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

General support questions
Post Reply
marbenoct2019
Posts: 11
Joined: 2019/10/19 11:18:28

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

Post by marbenoct2019 » 2020/11/21 08:29:35

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

User avatar
TrevorH
Forum Moderator
Posts: 29902
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Post by TrevorH » 2020/11/21 09:14:38

Run yum provides '*/libdb-4.7.so' and it will tell you what provides that file so then you know what to install.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

marbenoct2019
Posts: 11
Joined: 2019/10/19 11:18:28

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

Post by marbenoct2019 » 2020/11/21 11:14:29

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

marbenoct2019
Posts: 11
Joined: 2019/10/19 11:18:28

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

Post by marbenoct2019 » 2020/11/21 11:40:45

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

Post Reply

Return to “CentOS 7 - General Support”