Why am I getting this “libxml/tree.h file not found” error?

后端 未结 14 2191
半阙折子戏
半阙折子戏 2020-12-12 22:15

I just installed Xcode version 4.3.1 and I get this error:

libxml / tree.h file not found

I have also installed Xcode 4.2, and

14条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-12 22:30

    2 solutions:

    1. header search path should be updated with SDK root as such: $(SDKROOT)/usr/include/libxml2
    2. Install command line tools for XCode 5 from terminal by entering: xcode-select --install XCode 4 should have the command line tools install option in preferences>downloads section.

    I'd personally go with the second one.

提交回复
热议问题