As far as I can tell, even though there's an --enable-luajit configuration flag, the mod_lua config.m4 script only looks for lua libraries by default.
If you built LuaJIT as a dynamic library as well as a static library, you may want to explicitly link it statically:
LUA_LIBS="/usr/local/lib/libluajit-5.1.a -lm"
(You may have to change the paths depending on which version of LuaJIT you have installed, and where. Caveat lector: I didn't actually install and test the results of this.)
发布评论
评论(1)
我能够编译 Apache 2.3 并将 mod_lua 链接到 LuaJIT 2.0b6,如下所示:
据我所知,即使有一个
--enable-luajit
配置标志,mod_lua config.m4 脚本也只有默认查找 lua 库。如果您将 LuaJIT 构建为动态库和静态库,您可能需要显式静态链接它:(
您可能需要根据您安装的 LuaJIT 版本以及安装位置来更改路径。警告讲师:我没有实际上并没有安装并测试其结果。)
I was able to compile Apache 2.3 and link mod_lua against LuaJIT 2.0b6 like this:
As far as I can tell, even though there's an
--enable-luajit
configuration flag, the mod_lua config.m4 script only looks for lua libraries by default.If you built LuaJIT as a dynamic library as well as a static library, you may want to explicitly link it statically:
(You may have to change the paths depending on which version of LuaJIT you have installed, and where. Caveat lector: I didn't actually install and test the results of this.)