在RPM系统上使用Lua构建nginx

我想使用 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.

我尝试使用 export LUA_LIB=/usr/local/lib/ 给出路径,但也不起作用。

任何帮助将不胜感激。

原文链接 https://stackoverflow.com/questions/10650904

点赞
stackoverflow用户934599
stackoverflow用户934599

也许你需要安装 lua-devel 软件包。

2012-05-18 11:02:31