From owner-freebsd-questions@FreeBSD.ORG Fri Aug 28 11:54:14 2009 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 E62E8106566C for ; Fri, 28 Aug 2009 11:54:13 +0000 (UTC) (envelope-from wtf.jlaine@gmail.com) Received: from mail-ew0-f209.google.com (mail-ew0-f209.google.com [209.85.219.209]) by mx1.freebsd.org (Postfix) with ESMTP id 716F58FC23 for ; Fri, 28 Aug 2009 11:54:13 +0000 (UTC) Received: by ewy5 with SMTP id 5so1050889ewy.36 for ; Fri, 28 Aug 2009 04:54:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:mail-followup-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :x-operating-system; bh=7pLbpnlDo/P+EkQl4wnYlfT6gE+/E4VaA3ilK0hbO8c=; b=K8yyUMALQ6WalqpMEV7GJX3mn4f4VOjUzB+m0IvesbsPFDvyd4J7Hi+/JMmeiJvO2W ISoYRUT+DRqFV76ZKD32cWebNYvkvvUbC7cw3GLL7XltJS9LX7dokVeLa0+baL1lv+hL 6GV/D8m3zJtQvnuTRQbIXqv4s1LylwwN6FOIQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent:x-operating-system; b=FWrwXkcCdR0245Q5H12YjKGbzFIQaV5HnBv7/yeftrLUXEvBeOolvk3sxFwcssI0E4 ID9qp3VOZdPidMugv0hHzd8qC+GsizZx15Uukmv2qH0Xw4Ja5D531YkZWsohgj595aXn 8DJurI0nyaOOAq1FWV/TILngHxKnMZd9v19Ik= Received: by 10.211.129.20 with SMTP id g20mr1176713ebn.12.1251460451344; Fri, 28 Aug 2009 04:54:11 -0700 (PDT) Received: from aperture_lab ([77.66.145.99]) by mx.google.com with ESMTPS id 10sm2152772eyd.29.2009.08.28.04.54.09 (version=SSLv3 cipher=RC4-MD5); Fri, 28 Aug 2009 04:54:10 -0700 (PDT) Received: by aperture_lab (sSMTP sendmail emulation); Fri, 28 Aug 2009 15:54:05 +0400 Date: Fri, 28 Aug 2009 15:54:05 +0400 From: Jeff Laine To: Boris Samorodov Message-ID: <20090828115405.GA59475@free.bsd.loc> Mail-Followup-To: Jeff Laine , Boris Samorodov , freebsd-questions@freebsd.org References: <20090828090628.GA57211@free.bsd.loc> <89369855@bb.ipt.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <89369855@bb.ipt.ru> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-BETA2 i386 Cc: freebsd-questions@freebsd.org Subject: Re: linux_base installation - missing rpm binary 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, 28 Aug 2009 11:54:14 -0000 On Fri,28-08-2009 [14:57:04], Boris Samorodov wrote: > On Fri, 28 Aug 2009 13:06:28 +0400 Jeff Laine wrote: > > > I've just installed the emulators/linux_base-f10 port in order to run some > > rpm-based applications. > > Various online manuals told me that one should not use the native freebsd rpm > > binary (archivers/rpm), but instead use the /compat/linux/bin/rpm. But there's > > no such rpm binary under /compat/linux tree. What am I doing wrong? XD > > FreeBSD has it's own package manager and it is used to track > all ports (linux ports as well). So we don't use linux rpm > database (it is not supported). Said that I might add that it > doesn't mean that this won't work if you try. But you'll be at > your own here. > > If you need to install a linux rpm archieve you should do > as root: > # cd /compat/linux > # rpm2cpio -q < linux.rpm.archieve | cpio -id > Then brandelf any binary executable (not libraries!). > > Sure you won't be able to do a clean uninstall. But that > may help you to do your tests. > > The best way is to create an apropriate port and use it. > Creating a linux port is not hard task. Please take a look > at the ports tree (audio ports may be a good starting points > as examples). > > HTH > > > I'm running vanilla FreeBSD-7.2-RELEASE, fresh ports tree. > > BTW, I'm sure you have read /usr/ports/UPDATING and do have an > apropriate variables at /etc/make.conf. ;-) > Sure, I did. ;) Thanks for the answer, I've used cpio to unpack my rpms. And another related question if you don't mind. I've unpacked my apps under /compat/linux tree but my binary requires shared X libraries: >nsdexec: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot > open shared object file: No such file or directory >error while loading shared libraries: libXt.so.6: cannot open shared > object file: No such file or directory I've tried to install x11/linux-f10-xorg-libs port but brandelf tells me they are BSD-binaries incompatible with my linux stuff. And thus my app can't start complaining on incompatibilities if I tune lib paths. Any hints? TIA. -- Best regards, Jeff | "Nobody wants to say how this works. | | Maybe nobody knows ..." | | Xorg.conf(5) |