Results 1 to 3 of 3
  1. #1


    Member Since
    Nov 06, 2009
    Posts
    3
    Snow Leopard terminal command problem
    I'm working my way through a book on C programming fro the Mac, and right now, I'm trying to compile a simple program. The command in the book is

    cc -o slasher main.c

    but the terminal says

    -bash: cc: command not found

    I also tried gcc, with the same result. What's the correct command to compile a program from the CLI? The book hasn't yet been updated for OS 10.6

  2. #2

    nabl's Avatar
    Member Since
    Dec 13, 2007
    Location
    United States of America
    Posts
    256
    Specs:
    2.1GHz MacBook with 4GB RAM, Mac OS X 10.6, iLife and iWork 09
    You need to install the developer tools. You can do so either from your OS X Install Disc or from Apple's Web site.

  3. #3


    Member Since
    Nov 06, 2009
    Posts
    3
    I thought I already had them. I was right, and wrong; I had Xcode, but not the UNIX developer's tools. I installed the extras and the commands worked.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Terminal command help.
    By ladylisak in forum OS X - Operating System
    Replies: 2
    Last Post: 10-18-2013, 02:47 PM
  2. Take a Photobooth photo from Terminal in Snow Leopard?
    By jfeldstein in forum OS X - Apps and Games
    Replies: 0
    Last Post: 01-11-2011, 02:29 AM
  3. Problem installing Snow Leopard on to Leopard Macbook
    By stockwell in forum OS X - Operating System
    Replies: 3
    Last Post: 12-21-2010, 10:46 AM
  4. Macintosh Snow Leopard: Terminal Problem
    By Metal in forum OS X - Apps and Games
    Replies: 11
    Last Post: 10-03-2010, 07:42 PM
  5. This command doesn't work in terminal of Leopard Server
    By txn in forum OS X - Operating System
    Replies: 4
    Last Post: 12-02-2007, 01:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •