I have the gcc compiler in "/Developer/usr/bin/gcc" but when i type in gcc into terminal it says can not be found, i assume this is because its not in the "/usr/bin" dir. So can i a) move gcc from the first dir to the second, or set some kind of shortcut pointing gcc to "/Developer/usr/bin/gcc"
The tip thewoolleyman linked to worked for me! I have installed Xcode 4.3.3 via the App Store. I did not have to install Xcode "again", seems Apple solved that. What I had to do are the following easy steps:
Thanks to Guy and his post https://stackoverflow.com/a/9377095/1451903
Two choices:
~/.bashrc or ~/.bash_profile (or equivalent system files) and add /Developer/usr/bin/gcc to $PATH: export PATH="$PATH:/Developer/usr/bin/"/usr/bin directory pointing to the real file: ln -s /Developer/usr/bin/gcc /usr/bin/gccNote: in XCode 4.5 on MacOS 10.8 the path is now: /Applications/Xcode.app/Contents/Developer/usr/bin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With