title: Build nginx with Lua on RPM system
body: <p>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:</p>
  
  <pre><code>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.
  </code></pre>
  
  <p>I tried giving path by export <code>LUA_LIB=/usr/local/lib/</code> but that also did not work. </p>
  
  <p>Any help would be appreciated.</p>