gcc command not found error in OS X Lion – Fixed

After installing XCode in Mac OS X Lion, I could not compile any programs using gcc. I had no Developer folder, and command line compiling returned an error – “gcc: command not found.” Here’s how I fixed it: In Xcode, go to: Preferences -> Downloads with “Components.” Find Command Line Tools, and click on install….