Self-contained Xcode, missing libs and headers #10290
Comments
Is this Mountain Lion? |
Yes, but I think the same applies to 10.7 right? |
I'm fairly certain that /usr/lib and /usr/include exist on Lion. |
@jacknagel @mxcl I experienced this too. Couldn't get QMake or CMake to play nice without the command-line tools. I think that's our new dependency rather than Xcode. |
I can confirm |
But I also confirm that if you only install Xcode 4.3, you can barely build anything, a tonne of shit is missing. |
We should probably not demand it but |
For reference this is generally the configure error in question:
|
K, I know how to fix up brew doctor so that we tell the user what to do. |
In fact I guess we could get around the restriction that you must install the CLI tools. All the libs we need are in We can pass an However consider Xcode users are now probably the minority. I don't think it matters. Even though I'm that minority. |
If we can get it working, cool. |
BTW whole new category of bugs ready to happen: people who don't update the CLI tools because there is no auto-update for it. |
So does homebrew now need CLT? Even though -isystem gets passed to the compiler, it complains about missing stuff like unistd.h when CLT are not installed. |
Patches to make Homebrew not require CLT if Xcode 4.3 is installed are welcome. I think it's possible, you need an additional We'd need to test the patch thoroughly before applying. Who knows what weirdness may occur. For now CLT is required. |
(Required if 4.3 is installed; not on Snow Leopard for instance of course.) |
Can close this now? |
With a clean install with just Homebrew and Xcode, homebrew failed to build many packages. Since the /usr/lib and /usr/include folder is missing. The following has solved these issues:
There are not many libraries in
/usr/lib
. And/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib
contains mostPerhaps we can detect the current OS X version and find the appropriate SDK in Xcode app bundle if these paths are missing. I didn't have much luck with setting these paths via the appropriate compiler flags.
The text was updated successfully, but these errors were encountered: