Is there a way to run a linux binary in OS X?I tried to run a binary but it said it isn't executable.
is there a way to run a linux binary on OS X
binary
These answers are half correct, because virtualization is a choice but there is another.  May I present...  HistoryFirst there was UNIX, circa 1972Then the Timeline SplitIn 1977, for $90, Bob Fabry and others, compiled/built the first versions of BSD, short for Berkeley Systems Distribution.In 1991, Linus Torvalds posted in a Newsgroup, about software he used from Richard Stallman, who started GNU in 1983, and Linus'es UNIX was born.Apple reacquired NeXT Software in 1996, after Steve Jobs was fired from Apple in 1984, and used the software and people there to build OS X.  OS X is the Darwin OS + the NeXT Desktop Environment.  And now we're back to Bullet #1, as Darwin is a closed source fork of BSD.  For the Open Source Project, see PureDarwin.  For the Official Apple Developer Page, see Apple Open Source.How We Can Use ThisBSD's traditionally use the Ports system for Package Management.  The most widely used of these are the FreeBSD Ports.  Ports are packages installed directly from source.  Since the same Linux applications come from the same sources, you can run a Linux application if its port exists.  Don't use these Ports on a Mac because...Since all of Apple's GUI's are written using the Cocoa API - WikiEntry, bundled with XCode - OS X for Developers, the Ports can be tuned to take advantage of this:Install XCode for your version of OS X.Bundled inside XCode is Apple's version of the GCC Compiler, and all the other associated tools.  To update the tools, see this post on StackOverflow.  The tools are OS Version dependant, ie they are not backwards compatible, to my knowledge (in short, don't install XCode for 10.8 on 10.6, etc.)Having installed XCode you now have a compiler, and can head on over to the MacPorts page and browse for the port you need installed, after installing the MacPorts .pkg installerCaveatThe ports system doesn't necessarily do dependency checking, unless the port was well written.  I lightly touched on the problem in what does elibc_FreeBSD mean in gentoo portage overlays?