Rishabh
Rishabh

Reputation: 1205

Build nginx with Lua on RPM system

I want to build nginx with Lua third party module. This module requires Lua library. Lua 5.1 is installed on my server. But when I run ./compile with the the path to the nginx lua module. An error is thrown:

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.

I tried giving path by export LUA_LIB=/usr/local/lib/ but that also did not work.

Any help would be appreciated.

Upvotes: 0

Views: 5150

Answers (1)

uzsolt
uzsolt

Reputation: 6037

Maybe you'll need package lua-devel.

Upvotes: 5

Related Questions