Mac OS X Lion and Xcode upgraded: missing headers and libs

gederer picture gederer · Jul 22, 2011 · Viewed 15.8k times · Source

After upgrading to Lion, and upgrading Xcode, make can't seem to locate headers and libs. I looked in /usr/include. The only thing in there was 'parallels-server'. So, I renamed /usr/include to /usr/include.old, and made a symlink to:

/Developer/SDKs/MacOSX10.6.sdk/usr/include/

This is pretty evil. But, make can now find headers. Still can't locate libs (e.g., lcrt1.10.6.o).

What is the correct way to solve both the include and lib problems?

Thanks!

Answer

njamesp picture njamesp · Jul 22, 2011

After downloading Xcode 4 from the App Store, try running "/Applications/Install Xcode.app".