bash: gcc command not found
I keep on getting this error message. I have installed xcode 3.2
and it did not solve the problem.
please help asap.
Thanks
macbook pro 13", Mac OS X (10.6.5)
macbook pro 13", Mac OS X (10.6.5)
echo $PATH
I'm also having this issue, Xcode works fine, from the terminal nothing works as the enviornment has been changed ( or not set ) by Xcode..., this is Lion with the newest Xcode tools, before the upgrade everything worked.
What happens if you just try 'cc' instead of 'gcc'
Apple has switched over the the '/usr/bin/clang' compiler, which would explain XCode working fine.
While I have a /usr/bin/gcc, it is a symlink to /usr/bin/gcc -> llvm-gcc-4.2 (cc points to the same llvm-gcc-4.2), AND I do not know if this is from installing XCode recently or form my older versions of Mac OS X and XCode.
Open XCode-> Preferences->Downloads-> and Install "Command Line Tools".
Or Go To Developer.apple.com/downloads-> Sign in-> Download and install Command Line Tools for XCode for your OSX version.
Restart your terminal and gcc and make should work then.
I also had this problem. Francisco's response solved it for me.
bash: gcc command not found