Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

./configure can't find C compiler after OS X Lion installation

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?

like image 647
Tomer Lichtash Avatar asked Jul 22 '11 17:07

Tomer Lichtash


People also ask

How do I know if C compiler is installed on my Mac?

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.

How do I download C compiler on Mac?

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.

Where is my gcc path Mac?

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 .


1 Answers

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/.

like image 197
njamesp Avatar answered Oct 21 '22 19:10

njamesp