From owner-freebsd-questions@FreeBSD.ORG Mon Aug 1 20:58:05 2011 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 85BA9106566B for ; Mon, 1 Aug 2011 20:58:05 +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 34D488FC08 for ; Mon, 1 Aug 2011 20:58:04 +0000 (UTC) Received: from gate.ipt.ru ([194.62.233.123] helo=h30.sp.ipt.ru) by services.ipt.ru with esmtps (TLSv1:AES128-SHA:128) (Exim 4.54 (FreeBSD)) id 1Qnz1I-000DRS-SK; Tue, 02 Aug 2011 00:23:24 +0400 From: Boris Samorodov To: Traiano Welcome References: Date: Tue, 02 Aug 2011 00:23:23 +0400 In-Reply-To: (Traiano Welcome's message of "Mon, 1 Aug 2011 14:30:32 +0000") Message-ID: <37201588@h30.sp.ipt.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: "freebsd-questions@freebsd.org" Subject: Re: Linux Binary Compatibility: Libpam compile for FreeBSD 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: Mon, 01 Aug 2011 20:58:05 -0000 Hi All, On Mon, 1 Aug 2011 14:30:32 +0000 Traiano Welcome wrote: > I need to run a linux binary on freebsd 7.3 that expects to link to > libpam.so.0. I can't seem to find how to compile libpam (linux-pam) on > freebsd, or locate some kind of compatible binary I can run on freebsd > with linux binary compatibility enabled in the ports tree either. > Would anyone know if there is a freebsd port of linux libpam, or a > source package I could easily compile for freebsd 7.3 and upward ? > Informational: The binary I'm trying to run is "wmic" , a windows > management instrumentation client, for monitoring windows systems via > wmi. There does not seem to be a wmi client available for FreeBSD, > hence me resorting to a binary compiled for linux :-( > some information on the binary: > --- > wmic: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for > GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped > --- > running it: > --- > ./wmic: error while loading shared libraries: libpam.so.0: cannot open > shared object file: No such file or directory > --- > Any other suggestions that might help resolving this quandary would be > welcome :-) You may try to install that package by hand: http://archives.fedoraproject.org/pub/archive/fedora/linux/core/4/i386/os/Fedora/RPMS/pam-0.79-8.i386.rpm Hint: there is a how-to about installing linux packages by hand at the FreeBSD Handbook. -- WBR, bsam