Linux Binary Compatibility: Libpam compile for FreeBSD

Boris Samorodov bsam at ipt.ru
Mon Aug 1 20:58:05 UTC 2011


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


More information about the freebsd-questions mailing list