1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Xcode and gcc not being found

Discussion in 'Mac Programming' started by dukebound85, May 29, 2011.

  1. macrumors P6

    dukebound85

    #1
    Hi all, I am trying to set up Xcode 3 on my brothers mb. It installs but when we are trying to compile a c program we get a message that the gcc command is not found

    We have tried reinstalling xcode as wel and it hasn't alleviated the issue

    Any idea how to get this compiler to be recognized?

    Thanks:)
     
  2. macrumors 65816

    jiminaus

    #2
    Try uninstalling XCode with following command before reinstalling.

    Code:
    sudo /Developer/Library/uninstall-devtools --mode=all
    
    Try making sure Unix Development is ticked, if it wasn't already, when you reinstall. I know it says it's optional. But just in case.
     
  3. macrumors 603

    #3
    Look in /usr/bin/ for gcc , and make sure your $PATH shell variable includes it if you are compiling from the command line.

    Look in /Developer/Applications/ for Xcode.
     
  4. dukebound85, May 30, 2011
    Last edited: May 30, 2011

    macrumors P6

    dukebound85

    #4
    He downloaded Xcode 3.1.x and during the install, there was no way to click the unix command tools as it was permanently greyed out. I researched some and believe that 3.1.x unix tools are applicable only for 10.5 and you need 3.2.x to be able to install them on 10.6

    With that said, does anyone know where I can download xcode 3.2.6? or whatever? We have the free Apple developer acct and are only able to find xcode 4. Surely xcode 3.2.x is still up somewhere right?
     
  5. macrumors G5

    gnasher729

    #5
    Logged into the developer site, in big print you see "Download XCode 4", and in the same box in small print "Looking for XCode 3? -> Download"
     
  6. macrumors 603

    Cromulent

    #6
    Ignore. Question already answered.
     
  7. macrumors P6

    dukebound85

    #7
    Thanks all. Always right in front of ya lol
     

Share This Page