LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-08-2011, 01:56 PM   #1
CincinnatiKid
Member
 
Registered: Jul 2010
Posts: 454

Rep: Reputation: 47
Run Linux Binary on Mac OSX


I have Linux binary that I would like to run on MacOSX. Is there a way to do this? I don't have the source, all I have is the binary that was compiled on Mandriva. I was hoping maybe there was something like Wine, but instead of running Windows software on Linux, I would be running Linux software on Mac.
 
Old 08-08-2011, 02:08 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
what is the name of the program? we can't help much without knowing that. That being said binaries only work properly within the specific environment in which they were compiled, therefore it is highly unlikely that you will get any sort of binary compatibility between any flavor of Linux and mac OS X (it's difficult enough to create binaries compatible between flavors of linux let alown between an environment running a Linux kernel and one running a BSD kernel) , that being said if we knew the name of said program maybe we could point you in the direction of ether a mac OS X binary or the source code.

Last edited by frieza; 08-08-2011 at 02:10 PM.
 
Old 08-08-2011, 02:34 PM   #3
CincinnatiKid
Member
 
Registered: Jul 2010
Posts: 454

Original Poster
Rep: Reputation: 47
Well, it's actually a program I am writing with Gambas (http://gambas.sourceforge.net/en/main.html). But I would love for the program to run on my Mac. I was kind of hoping there was some kind of Linux compatibility lair that could be installed on my Mac, sort of like wine.
 
Old 08-08-2011, 03:08 PM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
well it appears that the easiest way would be to simply install OSX's development tools and compile gambas on OSX
 
Old 08-08-2011, 03:44 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
right on the front page of the link you posted is the June announcement about the mac port

build it
 
Old 08-08-2011, 04:16 PM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939
Every binary executable program is stored in a format that is specific to the type of operating system being used (e.g. Linux, Windows, OS/X, Z/OS, CP/M ...) and to the surrounding environment (of libraries and so on) that it expects. Therefore, not only can it not run on different types of systems, it may or may not run on different instances of the same type of system.
 
Old 08-09-2011, 09:44 AM   #7
CincinnatiKid
Member
 
Registered: Jul 2010
Posts: 454

Original Poster
Rep: Reputation: 47
OK, I will try and build the Mac port. That seems like the most logical solution. Thanks for your help.

Also, I know that a binary compiled on a system will not run on another system, as I stated, I was hoping there was something like Wine, but to run Linux binaries instead of Windows.

Thanks All.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mac OSX-Like Linux? Launchpad_72 Linux - Newbie 30 02-12-2018 08:32 AM
Linux Virtual IP and Mac osx ctx2002 Linux - Networking 1 07-08-2008 11:14 PM
Mac Osx Dock On Linux?? dj9928 Linux - Software 9 05-11-2008 04:04 AM
mac osx app on linux? slinky2004 Linux - Software 5 02-07-2006 01:47 AM
Mac Osx Like Linux For Newbie ?? my-unix-dream Linux - Newbie 2 04-17-2005 03:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration