Skip to content

nginx compile statically together with nginx-dav module #61

@nonvwvnon

Description

@nonvwvnon

nginx compile statically together with nginx-dav module

nginx is unable to find libxml when started to compile the nginx-dav module
run into this error :

fatal error: libxml/parser.h: No such file or directory

following is my setup:


nginx:

./configure
--with-cc="/pathtodir/musl/bin/musl-gcc" --with-ld-opt="-static -L/path/to/libxml/include/libxml2/libxml" --prefix=$prefix
..
..
--add-module=/path/to/src/ngx-dav --without-http_rewrite_module --without-http_gzip_module


nginx-dav module

/path/to/src/ngx-dav
added the following lines to 'config':

ngx_module_incs=/path/to/compiled/libxml/include/libxml2/libxml
ngx_module_libs=-L/path/to/compiled/libxml/lib

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions