While cc
and gcc
are perfectly in their right path (/Developer/usr/bin
in OS X Lion), running ./configure
tries to compile it through a hard coded (I guess) path - /usr/bin
.
Where do I setup configure's paths?
The name of the C compiler (that was installed along with the command line tools) is gcc. To check that this is now successfully installed, enter "gcc --version" at the prompt.
To download the C/C++ extension, go to the extension tab in VS code as shown in the image. Search for the C/C++ extension by Microsoft in the search bar and then click install. As we have done installing the editor as well as the extension let's write a simple C program in the editor.
Homebrew by default installs gcc to /opt/homebrew/bin . There you will be able to find gcc-11 . You can also find this path by running which gcc-11 .
The right answer is to install Xcode 4 from the App Store (free) and then run /Applications/Install Xcode.app. Then everything you need will be in /usr/.
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