Hello!
On Fri, Aug 22, 2014 at 6:38 AM, Aapo Talvensaari wrote:
> I do get this same error. If I uninstall luajit with brew, everything is
> fine then. Is it by design, that the build process uses the OS installed
> version of LuaJIT, and if there is no LuaJIT found on a system, it reverts
> to the bundled one?
>
No. The expected behavior should be always using the bundled one
unless the user specifies --with-luajit=PATH to point to another
LuaJIT installation location.
It seems like your -L/usr/ocal/lib overrides ngx_lua's -L option set
from the LUAJIT_LIB environment (set by OpenResty's ./configure).
Will you try applying the patch at the end of this mail to your
bundle/ngx_lua-*/ and try it again (from ./configure)
Thanks for the report!
Regards,
-agentzh
diff --git a/config b/config
index 1cb9fd3..43559a3 100644
--- a/config
+++ b/config
@@ -193,8 +193,8 @@ END
fi
if [ $ngx_found = yes ]; then
- CORE_INCS="$CORE_INCS $ngx_feature_path"
- CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
+ CORE_INCS="$ngx_feature_path $CORE_INCS"
+ CORE_LIBS="$ngx_feature_libs $CORE_LIBS"
else
cat << END
$0: error: ngx_http_lua_module requires the Lua library.