./configure--prefix=/usr/local/openresty--with-luajit--with-http_sub_module--add-module=.. /ngx_http_substitutions_filter_module-0.6.4
The Make times are wrong
-wl,-rpath,/usr/local/openresty/luajit/lib-l/applications/ngx_openresty-1.4.3.6/build/luajit-root/usr/local/ Openresty/luajit/lib-lluajit-5.1-lm-pagezero_size 10000-image_base 100000000-lpcre-lssl-lcrypto-lzundefined Symbo ls for architecture x86_64: "_pcre_free_study", referenced from: _ngx_http_lua_regex_free_study_data in Ngx_http_lua _regex.old:symbol (s) not found for Architecture X86_64clang:error:linker command failed with exit code 1 (use-v to see Invocation) MAKE[2]: * * [Objs/nginx] Error 1make[1]: * * [Build] Error 2make: * * * [ALL] Error 2
Workaround:
# Mdfind Pcre | grep usr/local
Find the directory where Pcre/usr/local/cellar/pcre/8.38/
Modify Parameters:
#./configure--prefix=/usr/local/openresty--with-luajit--with-http_sub_module--add-module=. /ngx_http_substitutions_filter_module-0.6.4--with-cc-opt= "-i/usr/local/cellar/pcre/8.38/include"--with-ld-opt= "-l/usr/local/cellar/pcre/8.38/lib"
Make successful again
Mac compilation openresty undefined symbols for architecture x86_64