OSX and Linux apps?

Discussion in 'Mac Help/Tips' started by krossfyter, Jan 23, 2003.

  1. krossfyter macrumors 601

    krossfyter

    Joined:
    Jan 13, 2002
    Location:
    secret city
    #1
    Hey guys a friend of mine who is a programmer posed a question to me about OSX. I dont know the answer so I'm wondering if any of you all do.
    Heres the question...


    "Does Mac OSX run Linux apps? I know that it's a Unix derivative, but I'm wanting to know if it's possible to run a Linux app in Mac OSX. This question arose because I'm trying to port some business-related apps that my department has written from the PC to Mac platform. These apps were written using Delphi, and I'm trying to avoid re-writing in a new language to do this. I can compile to a Linux executable from the same Delphi code using Borland Kylix, so if OSX runs Linux apps, this could be a solution."
     
  2. iShater macrumors 604

    iShater

    Joined:
    Aug 13, 2002
    Location:
    Chicagoland
    #2
    No it won't be able to run the code. The code you are generating is still an x86 based executable, so it won't run on a Mac. What he would need to do is find something that can compile the Delphi code into a Mac executable, and I never heard of such a thing.
     
  3. krossfyter thread starter macrumors 601

    krossfyter

    Joined:
    Jan 13, 2002
    Location:
    secret city
    #3


    is compiling the Delphi code into a Mac executable (if possible at all that is) the only way around this?
     
  4. xlemming macrumors newbie

    Joined:
    Apr 27, 2002
    Location:
    California
    #4
    yes you can run unix apps. I run gaim, kde, gnome all in tandem with the rest of my osx apps. Download fink and xfree86 or apple's x11 which is based on xfree. If you want to compile your own code you can run any unix app that is distributed by source. You cannont use x86 binaries, but there fink will take care of binaries for you.
     
  5. Catfish_Man macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #5
    Clarification: Not all Linux apps will run on all Linux systems. PowerPC Linux apps will run on PowerPC computers, and they should either run, or be very easy to port to OSX (the GIMP was ported in under 24 hours). x86 Linux apps won't run on either PowerPC Linux or OSX without a recompile (which is very easy to do for most linux programs).
     
  6. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #6
    Re: OSX and Linux apps?

    Whilst in general OSX will run Linux Apps if they are recompiled for OSX in this particular case they will not. This is because there is not a Kylix compiler for OSX and Linux Kylix will only compile x86 code, not PowerPC.
     
  7. krossfyter thread starter macrumors 601

    krossfyter

    Joined:
    Jan 13, 2002
    Location:
    secret city
    #7
    so i guess there is no quick and or easy solution to this problem?
     
  8. sparkleytone macrumors 68020

    sparkleytone

    Joined:
    Oct 28, 2001
    Location:
    Greensboro, NC
    #8
    it all really depends on whether or not the code is making calls to the x86 infrastructure. if you know that it can work in Linux on PPC architecture, then getting it to work in Darwin should really only be a trivial task.
     
  9. benixau macrumors 65816

    benixau

    Joined:
    Oct 9, 2002
    Location:
    Sydney, Australia
    #9
    and ladies and gentlemen my i highlight an important factor here : should
     
  10. iShater macrumors 604

    iShater

    Joined:
    Aug 13, 2002
    Location:
    Chicagoland
    #10
    Unfortunately no. There is no Delphi equivalent compiler to target MacOS and PPC AFAIK.
     

Share This Page