Installing gcc without Xcode

Discussion in 'Mac Programming' started by TouchOfClass, Oct 24, 2007.

  1. macrumors newbie

    Joined:
    Oct 22, 2007
    #1
    I downloaded the developer tools from Apple and I am trying to install gcc without installing Xcode and all the other tools. I was able to customize the install so that only gcc-4.0 and bsdsdk were installed. gcc is actually installed and appears to be working but stdio.h did not install. I couldn't find the library with 'locate' or 'spotlight' and I checked '/usr/include/'.

    The reason I am doing this is that all I need is a command line compiler.
     
  2. macrumors regular

    Joined:
    Dec 10, 2006
    #2
    Have you checked /usr/bin? :)
     
  3. thread starter macrumors newbie

    Joined:
    Oct 22, 2007
    #3
    yup.

    gcc is there but no stdio.h. I thought the standard c libraries were in /usr/include.
     
  4. macrumors 68040

    MongoTheGeek

    Joined:
    Sep 13, 2003
    Location:
    Its not so much where you are as when you are.
    #4
    They are included in the different OS SDKs

    /Developer/sdk/MacOSX10.n.n/usr/include

    Hmm.. I also have them in /usr/include, but nothing wants to find them there.
     
  5. macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #5
    You may want to install the Mac OS X 10.whatever SDK as well.
     

Share This Page