Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Aug 2011 22:06:05 +0000
From:      Traiano Welcome <Traiano.Welcome@mtnbusiness.co.za>
To:        Boris Samorodov <bsam@ipt.ru>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   RE: Linux Binary Compatibility: Libpam compile for FreeBSD
Message-ID:  <E012414FCF65894B89F69DE76AE15E99059403F2@CPT-EXCH01.int.mtnbusiness.net>
In-Reply-To: <37201588@h30.sp.ipt.ru>
References:  <E012414FCF65894B89F69DE76AE15E99059402B5@CPT-EXCH01.int.mtnbusiness.net>, <37201588@h30.sp.ipt.ru>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Hi Boris=0A=
=0A=
 (apologies for top-posting)=0A=
=0A=
 Thanks, I had to go this way in the end. My process was:=0A=
=0A=
 1. enable linux binary compatibility on freebsd.=0A=
 2. build a debian chroot environment using debootstrap=0A=
 3. obtain some binaries that I could not find in the debian package repos =
by extracting them directly from the from binary packages with rpm2cpio=0A=
 4. copy all the linux binaries to /usr/compat/linux/lib ... as per the Fre=
eBSD Handbook=0A=
 =0A=
  After that the binary works perfectly :-) FreeBSD Linux-Binary-Compatibil=
ity FTW!!!=0A=
=0A=
Regards,=0A=
Traiano=0A=
=0A=
________________________________________=0A=
From: Boris Samorodov [bsam@ipt.ru]=0A=
Sent: Monday, August 01, 2011 10:23 PM=0A=
To: Traiano Welcome=0A=
Cc: freebsd-questions@freebsd.org=0A=
Subject: Re: Linux Binary Compatibility: Libpam compile for FreeBSD=0A=
=0A=
Hi All,=0A=
=0A=
On Mon, 1 Aug 2011 14:30:32 +0000 Traiano Welcome wrote:=0A=
=0A=
> I need to run a linux binary on freebsd 7.3 that expects to link to=0A=
> libpam.so.0. I can't seem to find how to compile libpam (linux-pam) on=0A=
> freebsd, or locate some kind of compatible binary I can run on freebsd=0A=
> with linux binary compatibility enabled in the ports tree either.=0A=
=0A=
> Would anyone know if there is a freebsd port of linux libpam, or a=0A=
> source package I could easily compile for freebsd 7.3 and upward ?=0A=
=0A=
> Informational: The binary I'm trying to run is "wmic" , a windows=0A=
> management instrumentation client, for monitoring windows systems via=0A=
> wmi. There does not seem to be a wmi client available for FreeBSD,=0A=
> hence me resorting to a binary compiled for linux :-(=0A=
=0A=
> some information on the binary:=0A=
=0A=
> ---=0A=
> wmic: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for=0A=
> GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped=0A=
> ---=0A=
=0A=
> running it:=0A=
=0A=
> ---=0A=
> ./wmic: error while loading shared libraries: libpam.so.0: cannot open=0A=
> shared object file: No such file or directory=0A=
> ---=0A=
=0A=
> Any other suggestions that might help resolving this quandary would be=0A=
> welcome :-)=0A=
=0A=
You may try to install that package by hand:=0A=
http://archives.fedoraproject.org/pub/archive/fedora/linux/core/4/i386/os/F=
edora/RPMS/pam-0.79-8.i386.rpm=0A=
=0A=
Hint: there is a how-to about installing linux packages by hand at the=0A=
FreeBSD Handbook.=0A=
=0A=
--=0A=
WBR, bsam=0A=



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?E012414FCF65894B89F69DE76AE15E99059403F2>