This is a list of customized and known to work Makefile configurations for LuaSec
Please send us your Makefile if your OS isn't listed yet.
Debian Lenny
[...]
LUAPATH=/usr/share/lua/5.1
CPATH=/usr/lib/lua/5.1
# Edit the lines below to inform new path, if necessary
#
INCDIR=-I/usr/include/lua5.1 -I/usr/include/openssl
LIBDIR=-L/usr/lib/openssl -R/usr/lib/openssl
[...]