error: rpmdb: BDB0113 Thread/process 14323/139669979801664 failed: BDB1507 Thread died in Berkeley DB library 错误

最近给服务器安装memcached, 但是一直报错:

configure: error: no, libmemcached built with sasl disabled. Run configure with --disable-memcached-sasl or update libmemcached with sasl support
make: *** No targets specified and no makefile found.  Stop.
Install failed

执行安装 yum install -y cyrus-sasl cyrus-sasl-devel libevent libevent-devel 时, 提示以下报错:

error: rpmdb: BDB0113 Thread/process 14323/139669979801664 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 -  (-30973)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

Error: rpmdb open failed

如此只能重新构建rpm数据库了, 执行以下命令:

[root@localhost ~]# cd /var/lib/rpm
[root@localhost rpm]# ls
Basenames     __db.001  __db.003  Group       Name          Packages     Requirename  Sigmd5
Conflictname  __db.002  Dirnames  Installtid  Obsoletename  Providename  Sha1header   Triggername
[root@localhost rpm]# rm -rf __db*
[root@localhost rpm]# rpm --rebuilddb
Share

小 虾

哦也,我是小虾

You may also like...