PDA

View Full Version : FreeBSD binaries and MacOS



jerenept
July 17th, 2010, 02:41 AM
Just curious... do FreeBSD binaries run on Mac OS?

Mac OS is based on FreeBSD, according to their website.

ubunterooster
July 17th, 2010, 03:07 AM
I think they would as many UNIX and Linux programs run on MAC OSX with no problem. The only difference* is the GUI




*That I know of

-grubby
July 17th, 2010, 03:11 AM
That doesn't mean it's binary compatible. You can try, but a better bet is MacPorts (http://www.macports.org/).

Bachstelze
July 17th, 2010, 05:33 AM
Just curious... do FreeBSD binaries run on Mac OS?

No. Only the userspace of OS X is based on FreeBSD, the kernel is not.

schauerlich
July 17th, 2010, 05:44 AM
OS X is POSIX compliant, so a lot of portably-written FreeBSD (and Linux) code will compile on OS X. However, they are binary incompatible - OS X uses the Mach-O (http://en.wikipedia.org/wiki/Mach-o) binary format, and FreeBSD/Linux use ELF (http://en.wikipedia.org/wiki/Executable_and_Linkable_Format)