After upgrading to OSX 10.8 Mountain Lion, gcc compiler package was lost and gcc command seems missing.
When entering 'gcc -v' command in terminal, it displayed gcc command not found.
To install gcc back, Command line tools in Xcode should be installed.
Open Xcode, go to preferences... Command Line Tools is in Downloads section.
If Command Line Tools is not installed, just install it or update it.
gcc compiler installed or not can be checked by entering 'gcc -v' or simply 'gcc' command.
When entering 'gcc -v' command in terminal, it displayed gcc command not found.
To install gcc back, Command line tools in Xcode should be installed.
Open Xcode, go to preferences... Command Line Tools is in Downloads section.
If Command Line Tools is not installed, just install it or update it.
gcc compiler installed or not can be checked by entering 'gcc -v' or simply 'gcc' command.