Not sure. What I might be doing wrong here.
Using OSX Lion.
Trying to build the latest openresty, here is the output.
ran ./configure --with-luajit --with-http_postgres_module
then make
-Wl,-rpath,/usr/local/openresty/luajit/lib
-L/usr/local/Cellar/postgresql/9.2.4/lib -lpq
-L/apps/git/ngx_openresty/ngx_openresty-1.4.2.1/build/luajit-root/usr/local/openresty/luajit/lib
-lluajit-5.1 -lm -pagezero_size 10000 -image_base 100000000 -lpcre -lssl
-lcrypto -lz
Undefined symbols for architecture x86_64:
"_pcre_free_study", referenced from:
_ngx_http_lua_ngx_re_match in ngx_http_lua_regex.o
_ngx_http_lua_ngx_re_gmatch in ngx_http_lua_regex.o
_ngx_http_lua_ngx_re_sub_helper in ngx_http_lua_regex.o
_ngx_http_lua_ngx_re_gmatch_gc in ngx_http_lua_regex.o
_ngx_http_lua_ngx_re_gmatch_cleanup in ngx_http_lua_regex.o
_ngx_http_lua_ngx_re_gmatch_iterator in ngx_http_lua_regex.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[2]: *** [objs/nginx] Error 1
make[1]: *** [build] Error 2
make: *** [all] Error 2
Thanks in advance for any pointers.