在RPM系统上使用Lua构建nginx

Ris*_*abh 0 lua rpm 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.
Run Code Online (Sandbox Code Playgroud)

我尝试通过导出给路径,LUA_LIB=/usr/local/lib/但也没有用.

任何帮助,将不胜感激.

uzs*_*olt 5

也许你需要包装lua-devel.

  • 以下对我有用:`sudo apt-get install libluajit-5.1-dev` (2认同)