Hi Boris (apologies for top-posting)
Thanks, I had to go this way in the end. My process was: 1. enable linux binary compatibility on freebsd. 2. build a debian chroot environment using debootstrap 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 4. copy all the linux binaries to /usr/compat/linux/lib ... as per the FreeBSD Handbook After that the binary works perfectly :-) FreeBSD Linux-Binary-Compatibility FTW!!! Regards, Traiano ________________________________________ From: Boris Samorodov [b...@ipt.ru] Sent: Monday, August 01, 2011 10:23 PM To: Traiano Welcome Cc: freebsd-questions@freebsd.org Subject: Re: Linux Binary Compatibility: Libpam compile for FreeBSD 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 _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"