gcc: command not found error (this still haunts me, please help!)
I am trying to compile C files using terminal and the gcc command. I have XCode installed and can run a simple program no problem in XCode, but when I try compiling using the gcc command in terminal I get this error:
-bash: gcc: command not found
I know this is a common newbie mistake and is usually the result of improper XCode installation or not having the PATH set correctly. The odd thing is, a few months ago I was using Terminal to compile/run C files with no issue. Since then, I recently began programming using Java. I installed Eclipse and was using it to compile/run java programs, so my guess is that somehow having both Xcode and Eclipse installed together is causing the issue. I originally installed XCode by downloading it directly from the developer.apple.com/tools/xcode/ link and like I said, had no issues.
So the question is, do I really need to uninstall, re-download, and re-install Xcode again? I'd prefer to not mess around with the PATH either since I've never done this before and I previously had no issue six months ago. If I do need to download and re-install, what is the proper way to do this (while saving my old projects)? Thank you for the help
-Steve
Powerbook G4 (yup, the old one), Mac OS X (10.5.8)