Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3B69AFC1.C06887FC@windriver.com>
Date: Thu, 02 Aug 2001 12:53:37 -0700
From: Doru Carastan <doru.carastan@windriver.com>
Organization: Wind River, Inc.
X-Mailer: Mozilla 4.75 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Cygwin <cygwin@sources.redhat.com>
Subject: Re: [Fwd: -qa / -qi problem]
References: <20010802152211.F393@dothill.com>
Content-Type: text/plain; charset=x-user-defined
Content-Transfer-Encoding: 7bit

Jason Tishler wrote:
> 
> Doru,
> 
> In the future, please post to cygwin@cygwin.com instead of sending
> private email so others can benefit too.

I apologize for that. I considered it to be a better candidate for
rpm-list@redhat.com. Their answer is posted here:
http://groups.yahoo.com/group/rpm-list/message/14656
 
> On Wed, Aug 01, 2001 at 04:02:03PM -0700, Doru Carastan wrote:
> > I just sent this message to the RPM list. Is your RPM port working fine?
> > Mine has some problems. It is happening on both Linux and Cygwin
> > platforms for versions > 4.0-4.
> 
> Sorry, but I have only used my Cygwin rpm port in a very casual way.
> Actually, I have only "viewed" RPMs with it -- I never installed any
> packages with it.
> 
> Anyway, the following is the output for the same command sequence in your
> email to the RPM list:
> 
>     $ rpm --version
>     RPM version 4.0.2
>     $ rpm -qa
>     $ rpm -qa
>     $ rpm -q less
>     error: cannot open Name index using db3 - No such file or directory (2)
>     package less is not installed
>     $ rpm -q -i less
>     error: cannot open Name index using db3 - No such file or directory (2)
>     package less is not installed
>     $ rpm -q --info less
>     error: cannot open Name index using db3 - No such file or directory (2)
>     package less is not installed
> 
> Hence, my port seems to handle -qa and -qi or not having anything
> installed is masking problems.

I'm not so sure about that. You need to make sure you have created the
directory for _dbpath as it is listed by rpm --showrc. Then run rpm
--initdb to create an empty database. While being here it is a good idea
to check if _tmppath exists, otherwise any build command will fail too.
Could you please try this and run the command sequence again?

Thanks,
Doru C.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

