编译时指定了:
export SREGEX_INC=/opt/sregex/include
export SREGEX_LIB=/opt/sregex/lib
configure输出片断:
......
configuring additional dynamic modules
adding module in replace-filter-nginx-module-0.01rc5
checking for agentzh's sregex library in /builddir/build/BUILD/sregex/lib and /builddir/build/BUILD/sregex/include (specified by the SREGEX_LIB and SREGEX_INC env) ... found
+ ngx_http_replace_filter_module was configured
......
但在加载时提示找不到sre_vm_pike_exec:
# nginx -t
nginx: [emerg] dlopen() "/etc/nginx/modules/ngx_http_replace_filter_module.so" failed (/etc/nginx/modules/ngx_http_replace_filter_module.so: undefined symbol: sre_vm_pike_exec) in /etc/nginx/nginx.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed