Hi
I am getting belwo errors when i run db_recover on rhel 6.3 64 bit.
[root@mmprodam01 data-ldap]# /apps/db4/bin/db_recover -h /apps/openldap/var/openldap-data/ db_recover: Program version 4.7 doesn't match environment version 4.8 db_recover: Unacceptable log file /apps/openldap/var/openldap-data/log.0000000001: unsupported log version 16 db_recover: Invalid log file: log.0000000001: Invalid argument db_recover: PANIC: Invalid argument db_recover: process-private: unable to find environment db_recover: DB_ENV->open: DB_RUNRECOVERY: Fatal error, run database recovery
I have installed berkely db in /apps/db4 with simple prefix=/apps/db4
i am getting this error everytime i run any db_xxx command.
[root@mmprodam01 data-ldap]# rpm -qa | grep db4 db4-4.7.25-17.el6.x86_64 db4-utils-4.7.25-17.el6.x86_64
Its still taking db4.7 . Any help would be great.
Let me know in case further details are required.
On Thu, 20 Dec 2012, anil beniwal wrote:
[root@mmprodam01 data-ldap]# /apps/db4/bin/db_recover -h /apps/openldap/var/openldap-data/ db_recover: Program version 4.7 doesn't match environment version 4.8 I have installed berkely db in /apps/db4 with simple prefix=/apps/db4
What's the output of ldd /apps/db4/bin/db_recover? I'd wonder if it's picking up the wrong shared library. Shouldn't happen, as all of my db_recover binaries link against a soname with the minor in it, but.....
Hi Aaron
this is what i am getting
[root@mmprodam01 ~]# ldd /apps/db4/bin/db_recover linux-vdso.so.1 => (0x00007fff247ff000) libdb-4.8.so => /apps/db4/lib/libdb-4.8.so (0x00007f1ba4c31000) libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003643a00000) libc.so.6 => /lib64/libc.so.6 (0x0000003643200000) /lib64/ld-linux-x86-64.so.2 (0x0000003642e00000)
On Thu, Dec 20, 2012 at 7:22 PM, Aaron Richton richton@nbcs.rutgers.eduwrote:
ldd /apps/db4/bin/db_recover
On Fri, 21 Dec 2012, anil beniwal wrote:
[root@mmprodam01 ~]# ldd /apps/db4/bin/db_recover libdb-4.8.so => /apps/db4/lib/libdb-4.8.so (0x00007f1ba4c31000)
That's what I'd hope for. I wonder if you somehow got the system's db4.7 headers when you were compiling your local copy of db4.8? (Although I'd think that'd #error out...hmm.)
You might be able to strings(1) or similarly dump the /apps/db4/lib/libdb-4.8.so and try to see what it thinks.
Hi
It didn't help.
Even i tried new verion of bdb 5.3
i installed bdb to /apps/db5 with default options i.e --prefix=/apps/db5 only
Then i exported
[root@mmprodam01 openldap-2.4.20]# echo $LDFLAGS -L/usr/local/lib -L/apps/db5/lib -R/apps/db5/lib [root@mmprodam01 openldap-2.4.20]# echo $LD_LIBRARY_PATH /apps/db5/lib [root@mmprodam01 openldap-2.4.20]# echo $CPPFLAGS -I/apps/db5/include
Than i started compiling ldap 2.4.20 with below options
[root@mmprodam01 openldap-2.4.20]# ./configure --prefix=/app/openlda2p --enable-bdb --with-tls --enable-perl=yes --enable-slapd=yes --with-cyrus-sasl --enable-crypt=yes --enable-modules --enable-backends=yes --enable-monitor=yes --enable-overlays=yes --enable-ppolicy=yes --enable-syncprov=yes --enable-accesslog=yes --enable-auditlog=yes --enable-wrappers=yes
Still i am getting below errors
checking db.h usability... yes checking db.h presence... yes checking for db.h... yes checking for Berkeley DB major version in db.h... 5 checking for Berkeley DB minor version in db.h... 3 checking if Berkeley DB version supported by BDB/HDB backends... yes checking for Berkeley DB link (default)... no configure: error: BDB/HDB: BerkeleyDB not available
Can you please point me where i am going wrong.
On Fri, Dec 21, 2012 at 8:04 AM, Aaron Richton richton@nbcs.rutgers.eduwrote:
On Fri, 21 Dec 2012, anil beniwal wrote:
[root@mmprodam01 ~]# ldd /apps/db4/bin/db_recover
libdb-4.8.so => /apps/db4/lib/libdb-4.8.so (0x00007f1ba4c31000)
That's what I'd hope for. I wonder if you somehow got the system's db4.7 headers when you were compiling your local copy of db4.8? (Although I'd think that'd #error out...hmm.)
You might be able to strings(1) or similarly dump the /apps/db4/lib/ libdb-4.8.so and try to see what it thinks.
On Fri, 21 Dec 2012, anil beniwal wrote:
checking for Berkeley DB major version in db.h... 5 checking for Berkeley DB minor version in db.h... 3 checking if Berkeley DB version supported by BDB/HDB backends... yes checking for Berkeley DB link (default)... no configure: error: BDB/HDB: BerkeleyDB not available
Can you please point me where i am going wrong.
What's config.log show in this case? If it's showing 4.7 (as in your previous post), I'm still running with my long shot theory:
That's what I'd hope for. I wonder if you somehow got the system's db4.7 headers when you were compiling your local copy of db4.8? (Although I'd think that'd #error out...hmm.)
because it shouldn't be happening with the environment you're showing.
On 20/12/2012, at 4:04 PM, anil beniwal beni.anil@gmail.com wrote:
Hi
I am getting belwo errors when i run db_recover on rhel 6.3 64 bit.
How are you telling db_recover to use your version, if you aren't then that is your problem. Bdb 4.7 is the system standard on 6.x, use ldd <executable> to check.. It
Anil Beniwal
openldap-technical@openldap.org