you are missing the command line tools for OSX. Try running `xcode-select --install` from the command line On Sat, Nov 21, 2015 at 9:07 PM, Xue Fuqiao wrote: > On Sun, Nov 22, 2015 at 7:32 AM, Paul Eggert wrote: > > Hi Paul, > > > Xue Fuqiao wrote: > >> > >> IIRC OS X already provides libxml2, so I don't need to install one. But > >> it seems that `make' cannot find `libxml/tree.h' in my header search > >> path. Can anyone point me in the right direction? > > > > I suggest looking in the file configure.ac for the strings "xcsdkdir" > and > > "libxml2", and checking src/Makefile for its LIBXML2_CFLAGS setting. > > Thanks for the hint! > > In configure.ac: > > xcsdkdir=`$XCRUN --show-sdk-path 2>/dev/null` > [...] > LIBXML2_CFLAGS="-I'$xcsdkdir/usr/include/libxml2'" > > My $XCRUN is empty (I don't know why), therefore, in src/Makefile: > > LIBXML2_CFLAGS = -I/usr/include/libxml2 > > But I don't even have the /usr/include/ directory. With GNU findutils > (find / -regex '.*xml.*') I found that libxml2 is in > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include, > instead of /usr/include/. > > What should I do now? `sudo ln -s' looks like an ugly hack. Any > suggestions? > >