Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Thanks.

share|improve this question

1 Answer 1

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

or

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

Your Answer

 
discard

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.