本帖最后由 爱国者捣蛋 于 2022-6-4 01:30 编辑
RT,按照教程在nginx编译的时候加上nginx-dav-ext-module,但是一直失败,有没有大佬最近成功过?
- objs/addon/nginx-dav-ext-module/ngx_http_dav_ext_module.o
- objs/addon/nginx-dav-ext-module-3.0.0/ngx_http_dav_ext_module.o
- objs/ngx_modules.o
- -L/usr/local/lib -ljemalloc -Wl,-E -ldl -lpthread -lcrypt -L/usr/local/lib -lluajit-5.1 -lm -ldl pcre-8.43/.libs/libpcre.a /www/server/nginx/src/openssl/.openssl/lib/libssl.a /www/server/nginx/src/openssl/.openssl/lib/libcrypto.a -ldl -lpthread -lz -lxml2 -lxslt -lexslt -lgd
- -Wl,-E
- /usr/bin/ld: objs/addon/nginx-dav-ext-module-3.0.0/ngx_http_dav_ext_module.o:/root/nginx-dav-ext-module-3.0.0/ngx_http_dav_ext_module.c:186: multiple definition of `ngx_http_dav_ext_module’; objs/addon/nginx-dav-ext-module/ngx_http_dav_ext_module.o:/www/server/nginx/src/nginx-dav-ext-module/ngx_http_dav_ext_module.c:186: first defined here
- collect2: error: ld returned 1 exit status
- make[1]: *** [objs/Makefile:380: objs/nginx] Error 1
- make[1]: Leaving directory ‘/www/server/nginx/src’
- make: *** [Makefile:11: install] Error 2
- ========================================================
- Debian GNU/Linux 11
- l
- Bit:64 Mem:221M Core:1 gcc:10.2.1 cmake:3.18.4
- Linux 5.10.0-14-amd64 x86_64
- ERROR: nginx-1.16.1 installation failed.
复制代码
|