Getting started with C on Terminal (OS10.3)

Discussion in 'Mac Programming' started by russellelly, Sep 30, 2007.

  1. russellelly macrumors regular

    Jun 23, 2006
    Glasgow, UK
    Hi all,

    Started doing some C in uni this term using Unix. I'm having some bother getting a compiler to work on my iBook. I've downloaded the Xcode Legacy Tools from Apple Developer's site (since the current ones are for 10.4) and installed gcc 3.1 . However trying to execute gcc I just get Command Not Found. Not sure what I'm wrong, not sure where gcc has been installed to to check if its on my path or not, it's not made clear but I haven't changed the defaults.

    Any ideas on what could be going wrong? TIA :)
  2. zimv20 macrumors 601


    Jul 18, 2002
    it's probably in /usr/bin. you can run
    which gcc
    ... and it should tell you where it is. however, /usr/bin is likely already in your path, so maybe you didn't install it right.
  3. Cromulent macrumors 603


    Oct 2, 2006
    The Land of Hope and Glory
    You need to download Xcode 1.5 NOT the Xcode Legacy Tools. Xcode 1.5 is available for download from the same place as the current version of Xcode.

    The Xcode Legacy Tools are for development on OSX 10.0 and 10.1.

    Edit : Just had a look and it is in a slightly different place. Login to ADC using your free account and click downloads and then click the Developer Tools link and Xcode 1.5 is near the bottom.

Share This Page