On Thu, Mar 04, 2004 at 12:54:53PM +0100, Axel Thimm wrote: > Hi, > > I am trying to get rpm 4.3 working on FC1 (and earlier RHL > versions). I configured with "--without-selinux", and the built went > fine. As soon as I install rpm 4.3 on the FC1 machine I get > > # rpm -qa > rpmdb: Berkeley DB library configured to support only DB_PRIVATE environments > error: db4 error(22) from dbenv->open: Invalid argument > error: cannot open Packages index using db3 - Invalid argument (22) > error: cannot open Packages database in /var/lib/rpm > no packages > # /usr/lib/rpm/rpmdb_stat -CA -h /var/lib/rpm > db_stat: Berkeley DB library configured to support only DB_PRIVATE environments > db_stat: DB_ENV->open: /var/lib/rpm: Invalid argument > > (also tried with LD_ASSUME_KERNEL=2.2.5) > > I checked the %post scriplet and saw that it checked for "db_stat: > Program version 4.2 doesn't match environment version" and removed the > __db* files. So I removed them by hand. > > After that LD_ASSUME_KERNEL=2.2.5 rpm -qa works, but not dbstat: > # LD_ASSUME_KERNEL=2.2.5 /usr/lib/rpm/rpmdb_stat -CA -h /var/lib/rpm > db_stat: Berkeley DB library configured to support only DB_PRIVATE environments > db_stat: DB_ENV->open: /var/lib/rpm: Invalid argument > > Any hints? I believe there are some selinux bits still left in even > when "--without-selinux" is used, as I see messages from this build > like > /etc/security/selinux/src/policy/file_contexts/file_contexts: No such file or directory > > Can this be the cause of grief? ;) On Thu, Mar 04, 2004 at 09:22:34AM -0500, James Olin Oden wrote: > Make sure you removed the /var/lib/rpm/__db* files. This is something I > had to do to run rpm 4.3 on a RH 9 box. Let me know if this does not > help. See above, already tried. rpm -qa with LD_ASSUME_KERNEL=2.2.5 then works, but rpmdb_stat still bails out. And neither works w/o the LD_ASSUME_KERNEL stuff. -- Axel.Thimm@xxxxxxxxxxxxxxxxxxx
Attachment:
pgp00039.pgp
Description: PGP signature