From owner-freebsd-questions Wed Aug 2 17: 3:44 2000 Delivered-To: freebsd-questions@freebsd.org Received: from luna.osd.bsdi.com (ether.osd.bsdi.com [204.216.28.196]) by hub.freebsd.org (Postfix) with ESMTP id 7EAB037B874 for ; Wed, 2 Aug 2000 17:03:41 -0700 (PDT) (envelope-from jim@luna.osd.bsdi.com) Received: by luna.osd.bsdi.com (Postfix, from userid 1000) id 97DB031A6; Wed, 2 Aug 2000 17:03:41 -0700 (PDT) Date: Wed, 2 Aug 2000 17:03:41 -0700 From: Jim Mock To: Tobias Roth Cc: freebsd-questions@FreeBSD.ORG Subject: Re: how to install an rpm Message-ID: <20000802170341.A67350@luna.osd.bsdi.com> Reply-To: jim@jmock.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from roth@iamexwi.unibe.ch on Thu, Aug 03, 2000 at 01:57:18AM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 03 Aug 2000 at 01:57:18 +0200, Tobias Roth wrote: > Hi there > > I just started with linux emulation and got a little confused. > I got everything working (I installed the linux_base port). > > Now, I have two versions of rpm, a FreeBSD one and a linux one, which > give me the following output when I try to install an rpm: > > su-2.04# /usr/local/bin/rpm -i gtk+-1.2.8-1.i386.rpm > failed to open //var/lib/rpm/packages.rpm > > error: cannot open //var/lib/rpm/packages.rpm Why are you trying to install an rpm of gtk instead of using the port? > and > > su-2.04# /usr/compat/linux/bin/rpm -i gtk+-1.2.8-1.i386.rpm > failed to open /etc/mtab: No such file or directory > warning: /etc/gtk/gtkrc saved as /etc/gtk/gtkrc.rpmorig > warning: /etc/gtk/gtkrc.bg saved as /etc/gtk/gtkrc.bg.rpmorig > unpacking of archive failed on file /etc/gtk/gtkrc.bg_BG.iso88595: cpio: > symlink failed - File exists > > (I had to to an /usr/compat/linux/bin/rpm --rebuilddb to get this far) > > Looks like I have to use the linux rpm. But then, whatever I do, I > get symlink errors from cpio such as the one described. > > What am I doing wrong? Should I not install rpms but just copy the > libs over from someones Linux system? Where do I fond documentation > about this? The handbook is not very detailed. You're making your life more difficult than it needs to be. The ports collection is your friend. # cd /usr/ports/x11-toolkits/gtk12 # make install distclean - jim -- jim mock work: jim@osd.bsdi.com | jim@FreeBSD.org http://soupnazi.org/~jim/ BSDi Open Source Div | http://bsdi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message