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

Similar Threads
thread Thread Starter Forum Replies Last Post
Command Line Developer Tools 5.1.0.0 Peaceful Mac Programming 3 Mar 16, 2014 01:28 AM
Apple Developer Website Hacked: Developer Names, Addresses May Have Been Taken MacRumors MacRumors.com News Discussion 200 Jul 26, 2013 04:49 PM
Resolved: Developer tools without Xcode? beautifulcoder Mac Programming 23 Jun 9, 2013 07:39 PM
Apple Planning March Special Event to Introduce Developer Tools for TV? MacRumors MacRumors.com News Discussion 84 Mar 11, 2013 09:16 AM

Forum Jump

All times are GMT -5. The time now is 02:42 AM.

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

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