Developer help: GCC with Leopard + Developer tools

Discussion in 'OS X' started by j4mie, Oct 28, 2007.

  1. macrumors newbie

    Joined:
    Oct 26, 2007
    Location:
    Brighton, UK
    #1
    On Tiger, installing the Developer Tools was all you needed to do to use GCC at the command line. I installed Leopard today and the new version of the Developer Tools and now I get:

    Code:
    macbook:/ jamie$ gcc
    -bash: gcc: command not found
    I have a feeling this may be something to do with my $PATH variable, but I have no idea how to fix it.

    Any thoughts?
     
  2. macrumors newbie

    Joined:
    Sep 6, 2007
    Location:
    Virginia, USA
    #2
    Make sure that gcc is installed. It resides in /usr/bin in version 10.3 (sorry, have not upgraded from Panther). It may be installed somewhere else, though. Try 'whereis gcc'. Once you know where gcc is located, you can add the location to your $PATH, which you can alter in your .bashrc file (or .cshrc), for example. Just add a colon and the path you found.
     
  3. thread starter macrumors newbie

    Joined:
    Oct 26, 2007
    Location:
    Brighton, UK
    #3
    Thanks, I actually solved this myself - turned out I'd unticked the option for command line tools in the installer. I mustn't have read the description properly. File this under "stupid questions" :D
     

Share This Page