RPM Community Forums

Mailing List Message of <rpm-users>

Re: Fwd: error: cannot open Packages database in /var/lib/rpm

From: <spam.spam.spam.spam@free.fr>
Date: Thu 28 May 2009 - 19:51:27 CEST
Message-ID: <1243533087.4a1ecf1f25880@imp.free.fr>
Selon Jeff Johnson <n3npq@mac.com>:

>
>
> Begin forwarded message:
>
> > From: Jeff Johnson <n3npq@mac.com>
> > Date: May 28, 2009 11:55:11 AM EDT
> > To: spam.spam.spam.spam@free.fr
> > Subject: Re: error: cannot open Packages database in /var/lib/rpm
> >
> >
> > On May 28, 2009, at 11:46 AM, spam.spam.spam.spam@free.fr wrote:
> >
> >>
> >>
> >> Ok so, you think I should check what compressions I have built into
> >> RPM. Do you
> >> speak about the 8Kingdoms-1.1.0-6.fc9.i386.rpm RPM package or the
> >> rpm5 software?
> >>
> >> The configure options I have chosen :
> >>
> >> ./configure --without-path-versioned --without-db-tools-integrated
> >> --without-db-rpc --without-db-largefile --without-python --without-
> >> perl
> >> --without-selinux --without-libelf --without-pthread --without-
> >> libintl-prefix
> >> --without-libiconv-prefix --without-gnu-ld --without-apidocs --
> >> without-pic
> >> --disable-largefile --disable-rpath --disable-nls --disable-broken-
> >> chown
> >> --disable-build-lafiles --disable-build-maxextlibdep --disable-
> >> build-extlibdep
> >> --disable-build-intlibdep --disable-build-versionscript --disable-
> >> build-static
> >> --disable-build-gcov --disable-build-pie --disable-build-pic
> >> --disable-libtool-lock --disable-dependency-tracking --disable-
> >> maintainer-mode
> >> --disable-build-warnings --disable-build-debug --with-popt --
> >> without-zlib
> >> --without-bzip2 --without-xz --with-beecrypt --without-nss --
> >> without-openssl
> >> --without-neon --without-file --with-db --without-sqlite --without-
> >> lua
> >> --without-pcre -without-uuid --without-syck --without-xar --without-
> >> dmalloc
> >> --without-efence --without-keyutils --prefix=/
> >>
> >> How to know the compressions that have been built into RPM?
> >
> > Well from your configure arguments I can tell:
> > 	--without-zlib	no gzip compression
> > 	--without-bzip2	no bzip2 compression
> > 	--without-xz	no XZ compression
> > and so you've built a version of rpm that is incapable
> > of installing any packages (all *.rpm packages have some
> > form of compression)
> >
> > At a minimum, I suggest adding
> > 	--with-zlib
> > if you want to actually build and install a *.rpm package.
> >
> > Note also that disabling *everything* is a much harder
> > introduction to RPM than any other conceivable path.
> >
> > 73 de Jeff
>
> ______________________________________________________________________
> RPM Package Manager                                    http://rpm5.org
> User Communication List                             rpm-users@rpm5.org
>

I try with these configuration options now :

./configure --without-path-versioned --without-db-tools-integrated
--without-db-rpc --without-db-largefile --without-python --without-perl
--without-selinux --without-libelf --without-pthread --without-libintl-prefix
--without-libiconv-prefix --without-gnu-ld --without-apidocs --without-pic
--disable-largefile --disable-rpath --disable-nls --disable-broken-chown
--disable-build-lafiles --disable-build-maxextlibdep --disable-build-extlibdep
--disable-build-intlibdep --disable-build-versionscript --disable-build-static
--disable-build-gcov --disable-build-pie --disable-build-pic
--disable-libtool-lock --disable-dependency-tracking --disable-maintainer-mode
--disable-build-warnings --disable-build-debug --with-popt --with-zlib
--without-bzip2 --without-xz --with-beecrypt --without-nss --without-openssl
--without-neon --without-file --with-db --without-sqlite --without-lua
--without-pcre -without-uuid --without-syck --without-xar --without-dmalloc
--without-efence --without-keyutils --prefix=/
--with-path-macros=/lib/rpm/macros

The two things which change :
--with-zlib
--with-path-macros=/lib/rpm/macros

And I install zlib-1.2.3.
Now :

# rpm --nodeps -i 8Kingdoms-1.1.0-6.fc9.i386.rpm
warning: 8Kingdoms-1.1.0-6.fc9.i386.rpm: Header V3 DSA signature: NOKEY, key ID
4ebfc273
error: failed to open /etc/mtab: No such file or directory
error: %post(8Kingdoms-1.1.0-6.fc9.i386) scriptlet failed, exit status 255

So there is some errors as you can see but it in installed!
I see the files /usr/bin/8Kingdoms

nice wrok :)

The /etc/mtab error is normal... I am in a chrooted directory and no partition
table is available...

But the second error, I never seen it before :
error: %post(8Kingdoms-1.1.0-6.fc9.i386) scriptlet failed, exit status 255

What it means?
Received on Thu May 28 19:51:55 2009
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.