Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I run the make of cyrus-imapd-2.4.17-caldav-beta9 get the following error:

In file included from httpd.c:68:0:
httpd.h:48:25: fatal error: libxml/tree.h: No such file or directory
compilation terminated.

I'm trying to install this beta version that supports calendars.

I have installed libxml2-dev.

apt-get install libxml2-dev

My operating system is Debian 7.

What am I forgetting?

share|improve this question
up vote 1 down vote accepted

dpkg -L libxml2-dev | grep tree.h shows that libxml/tree.h is in /usr/include/libxml2, not /usr/include. So you probably need to add -I/usr/include/libxml2 to your compiler commands. I don't know that particular Makefile, but typically you'd do that by running

CFLAGS=-I/usr/include/libxml2 ./configure


CFLAGS=-I/usr/include/libxml2 make
share|improve this answer
Your solution worked!, thanks. – Maria José Jan 3 '14 at 12:22
Cool! Then please accept the solution. – Andrew Schulman Jan 3 '14 at 12:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.