我想用 Lua 第三方模块构建 nginx。该模块需要 Lua 库。Lua 5.1 安装在我的服务器上。但是当我使用 nginx lua 模块的路径运行 ./compile 时。抛出一个错误:
checking for Lua library ... not found
checking for Lua library in /usr/local/ ... not found
checking for Lua library in /usr/pkg/ ... not found
checking for Lua library in /opt/local/ ... not found
checking for Lua library in /usr/local/../lua51/ ... not found
checking for Lua library in /usr/ ... not found
./configure: error: ngx_http_lua_module requires the Lua library.
我尝试通过导出提供路径,LUA_LIB=/usr/local/lib/
但这也不起作用。
任何帮助,将不胜感激。