ngx_http_dav_ext_module编译失败?

in 日常 with 0 comment

error: 'ngx_http_headers_in_t {aka struct }' has no member named 'destination'

     dest = r->headers_in.destination;
                         ^

dav/ngx_http_dav_ext_module.c: In function 'ngx_http_dav_ext_depth':
dav/ngx_http_dav_ext_module.c:1373:26: error: 'ngx_http_headers_in_t {aka struct }' has no member named 'depth'

错误

花了半天解决这个问题,后来看到这一行

提示

哦吼,豁然开朗,原来忘记编译nginx自带的dav模块了
那么在configure中加入一句--with-http_dav_module,完成


关于fatal error: libxml/parser.h: No such file or directory,我想说一句
真TM坑!默认不是安装在include/libxml下,而是include/libxml2/libxml
所以务必使用软链接

ln -s /usr/local/armv7m-linux-musleabi/include/libxml2/libxml/ /usr/local/armv7m-linux-musleabi/include
Responses