From owner-freebsd-questions@FreeBSD.ORG Fri Nov 9 20:45:54 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C67316A421 for ; Fri, 9 Nov 2007 20:45:54 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id E8D3913C4C1 for ; Fri, 9 Nov 2007 20:45:53 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from srv.sem.ipt.ru ([192.168.12.1]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1Iqajb-000JFK-N7; Fri, 09 Nov 2007 23:45:47 +0300 To: =?utf-8?B?5YaJ5L+K56eA?= References: From: Boris Samorodov Date: Fri, 09 Nov 2007 23:48:29 +0300 In-Reply-To: (=?utf-8?B?IuWGieS/iuengCIncw==?= message of "Fri\, 9 Nov 2007 21\:52\:57 +0800") Message-ID: <55158898@srv.sem.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Help:Install RPMS on FreeBSD 6.2 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2007 20:45:54 -0000 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