编译jabberd 2出现expat.h: No such file or directory

本次使用的版本为jabberd-2.3.2,在编译过程中出现如下问题:

In file included from callback.c:21:
sx.h:30:19: error: expat.h: No such file or directory
In file included from callback.c:21:
sx.h:316: error: expected specifier-qualifier-list before 'XML_Parser'
callback.c: In function '_sx_element_start':

callback.c:32: error: 'struct _sx_st' has no member named 'fail'

callback.c:35: error: 'struct _sx_st' has no member named 'nad'

解决方法如下:

yum install expat-devel

你可能感兴趣的:(Linux)