Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Nov 2007 23:48:29 +0300
From:      Boris Samorodov <bsam@ipt.ru>
To:        =?utf-8?B?5YaJ5L+K56eA?= <beyondran@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Help:Install RPMS on FreeBSD 6.2
Message-ID:  <55158898@srv.sem.ipt.ru>
In-Reply-To: <e25f39a10711090552t6ab6de3au9663ae4e2e7ccc15@mail.gmail.com> (=?utf-8?B?IuWGieS/iuengCIncw==?= message of "Fri\, 9 Nov 2007 21\:52\:57 %2B0800")
References:  <e25f39a10711090552t6ab6de3au9663ae4e2e7ccc15@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Beyondran,


On Fri, 9 Nov 2007 21:52:57 +0800 =E5=86=89=E4=BF=8A=E7=A7=80 wrote:

> Hello,I have just install rpm-3.0.6 via /usr/ports/archivers/rpm.
> And I get some ERROR like below when trying to install
> libc5compat-1.0-5.i586.rpm  via rpm.

> host# /usr/local/bin/rpm -Uvh libc5compat-1.0-5.i586.rpm

> error: failed dependencies:
>          /bin/sh   is needed by libc5compat-1.0-5
>          /sbin/ldconfig    is needed by libc5compat-1.0-5

> But I can find  /bin/sh  and  /sbin/ldconfig on my FreeBSD 6.2.
> How can I solve this problem,could anyone help me.
> Many thanks.

The main idea is routher simple:
# rpm2cpio < the_package.rpm | cpio -id --quiet

That's it. Mind some tips though:
. better to use /compat/linux as a directory prefix;
. linux binaries (not libraries!) should be branded (man(1) brandelf);
. we use only i386.rpm packages (not i586.rpm);
. it's always better to create a port, submit and use it. ;-)

For some references you may look at /usr/ports/Mk/bsd.linux-rpm.mk
and linux ports (ex. /usr/ports/audio/linux-*,
/usr/ports/graphics/linux-*).


HTH and WBR
--=20
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve



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