How to install cc?

Discussion in 'macOS' started by corli, Feb 16, 2006.

  1. corli macrumors newbie

    Joined:
    Feb 16, 2006
    #1
    i need to install cc on mac? how can i do that?
    is there something that resembles to apt-get?
    if yes, where can i find it and how to install?
    10x...
     
  2. Mitthrawnuruodo Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
    #2
    Fink is the closest you get to apt-get... but I have no idea if cc is available (or even what cc is). ;)
     
  3. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #3
    Multiple Questions: multiple answers:

    1) Install Apple's Developer Tools (XCode etc). These include command line compilers like gcc. You should have an installer in Applications->Installers or something similar or you can download the newest release from : Apple. You want the XCode download. If it says you need a developer account you can create a free web only one.

    2) If you really want something like apt check out fink or darwin ports.
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    cc is the C Compiler. Apple use gcc but I think they symlink cc to gcc.
     
  5. Mitthrawnuruodo Moderator emeritus

    Mitthrawnuruodo

    Joined:
    Mar 10, 2004
    Location:
    Bergen, Norway
    #5
    Suspected that, but I'm so used to gcc/g++ that I didn't dare suggest Developer Tool... :eek:

    Do you know if (g)cc is available via Fink...? :)
    Edit: Never mind, just remembered that I have fink installed, and gcc 3.3 is available... and there are also some cctools, which I guess has something to do with the compiler... :)
     
  6. iMeowbot macrumors G3

    iMeowbot

    Joined:
    Aug 30, 2003
    #6
    Yep, gcc and cc are symlinks to whatever GCC binary has been set by the last gcc_select(8) run.
     
  7. corli thread starter macrumors newbie

    Joined:
    Feb 16, 2006
    #7
    thanks.. i already found fink.dmg. my problem was that i was trying to install Qt.. for this i need gcc.. then i downloaded gcc and tried to install.. but of course for this i needed cc.. so i was going nowhere. i hope fink will help
     
  8. ElectricSheep macrumors 6502

    ElectricSheep

    Joined:
    Feb 18, 2004
    Location:
    Wilmington, DE
    #8
    You'll need to install the latest version of Apple's Developer Tools (XCode) for fink to work.

    XCode
     

Share This Page