gcc ?

Discussion in 'Mac OS X Lion (10.7)' started by dethmaShine, Apr 22, 2011.

  1. macrumors 68000

    Joined:
    Apr 13, 2010
    Location:
    Into the lungs of Hell
    #1
    Well, I was trying to compile one of my c programs on lion the other night but there's no such command as gcc, i.e. it gcc is not built into mac os x lion [as of now].

    On SL:

    > which gcc

    would give: /usr/bin/gcc

    but there is no such executable in mac os x lion.

    Any body here who knows more about it?
     
  2. macrumors regular

    Joined:
    Sep 7, 2007
    Location:
    Netherlands
    #2

    You have xcode installed?
     
  3. thread starter macrumors 68000

    Joined:
    Apr 13, 2010
    Location:
    Into the lungs of Hell
    #3
    Not on OS X Lion.
     
  4. macrumors 6502

    innominato5090

    Joined:
    Sep 4, 2009
    #4
    gcc is included in xCode... you have to install it first.
     
  5. thread starter macrumors 68000

    Joined:
    Apr 13, 2010
    Location:
    Into the lungs of Hell
    #5
    Well thanks for that. I thought gcc comes installed with os x by default. Thank you. :)
     

Share This Page