I think it's easier to install the lua module without openresty.
Simply install LuaJIT, then download the nginx source, nginx development kit and lua nginx source, then use the following script (replace the path where needed) instead of configure, then make and then make install (as root):
#!/usr/bin/env bash
# Add options required for a 'real' installation (from package).
# Note that the main directory of nginx will be set to the default - /usr/local/nginx.
INSTALLATION_OPTIONS="--sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log"
# Add Lua options for the Lua Module (see http://wiki.nginx.org/HttpLuaModule#Installation ).
# Note that we use the recommended LuaJIT, and not Lua 5.1/2.
export LUAJIT_LIB=/usr/lib/x86_64-linux-gnu/libluajit-5.1.so # Default path when installing from package
export LUAJIT_INC=/usr/include/luajit-2.0 # Default path when installing from package
./configure --add-module=<nginx-development-kit-path> --add-module=<lua-nginx-module-path> --with-cc=gcc $INSTALLATION_OPTIONS $*
On Tuesday, March 19, 2013 1:42:52 PM UTC+2, alain meunier wrote:
Hi,
I am not sure how to use the luajit2.0 module with nginx.
I read
http://wiki.nginx.org/HttpLuaModule#Lua.2FLuaJIT_bytecode_supportBut i don't fully understand : how may I be sure to use luajit ?
My version came from the last official debian packaged one, which contains your lua module.
That is why I ask here.
May you enlighten me please ?
Cheers,
Alain