Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal error: libxml/tree.h: No such file or directory libxml/tree.h. In cyrus-imapd

Tags:

c

debian

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.

like image 271
Maria José Avatar asked Oct 16 '25 22:10

Maria José


2 Answers

Try including

`xml2-config --cflags`

and

`xml2-config --libs`

in your gcc args. This will probably fix the issue.

like image 94
1337 on Tuesdays Avatar answered Oct 18 '25 11:10

1337 on Tuesdays


For some(in centos) who is not in this case, but encounter this error, the next may help (if in ubuntu, switch to 'apt install' ):

yum install -y libxml2-devel  libxml2 
like image 25
terwxqian Avatar answered Oct 18 '25 13:10

terwxqian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!