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

Tomer Lichtash picture Tomer Lichtash · Jul 22, 2011 · Viewed 21.9k times · Source

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?

Answer

njamesp picture njamesp · Jul 22, 2011

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