Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > OS X

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 28, 2007, 06:11 PM   #1
j4mie
macrumors newbie
 
Join Date: Oct 2007
Location: Brighton, UK
Developer help: GCC with Leopard + Developer tools

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?
j4mie is offline   0 Reply With Quote
Old Oct 28, 2007, 06:49 PM   #2
slb6r
macrumors newbie
 
Join Date: Sep 2007
Location: Virginia, USA
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.
slb6r is offline   0 Reply With Quote
Old Oct 28, 2007, 07:05 PM   #3
j4mie
Thread Starter
macrumors newbie
 
Join Date: Oct 2007
Location: Brighton, UK
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"
j4mie is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
iOS Developer Forums are gone SimonBS iPhone/iPad Programming 5 Jun 7, 2011 05:33 AM
Lion, Leopard, iMac and Audio Software... snogger Mac OS X 10.7 Lion 2 May 20, 2011 02:25 PM
Mac Developer Account Advantages for 2011 -BigMac- Mac Programming 1 May 6, 2011 04:10 AM
External Enclosure & Tool Kit Recommendations? Jakerz MacBook Pro 0 Apr 5, 2011 09:03 AM
Do the iBooks come with Mac Development Tools mykemp Buying Tips, Advice and Discussion (archive) 3 May 4, 2004 10:19 AM


All times are GMT -5. The time now is 04:09 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC