Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Aug 2000 17:03:41 -0700
From:      Jim Mock <jim@jmock.com>
To:        Tobias Roth <roth@iamexwi.unibe.ch>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: how to install an rpm
Message-ID:  <20000802170341.A67350@luna.osd.bsdi.com>
In-Reply-To: <Pine.GSO.4.10.10008030040470.13049-100000@arp>; from roth@iamexwi.unibe.ch on Thu, Aug 03, 2000 at 01:57:18AM %2B0200
References:  <Pine.GSO.4.10.10008030040470.13049-100000@arp>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jim@jmock.com>        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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000802170341.A67350>