lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello

I'm giving Nginx another try to include the ngx_lua and run Lua
scripts.

This tutorial...
https://github.com/chaoslawful/lua-nginx-module#installation
... explains that we should first export the two following env't
variables:
======================
export LUA_LIB=/usr/lib/arm-linux-gnueabi
export LUA_INC=/usr/include/lua5.1
======================

But configure isn't happy:
======================
cd nginx-1.5.8

./configure --prefix=/opt/nginx --add-module=../ngx_devel_kit-0.2.19
--add-module=../lua-nginx-module-0.9.4
...
checking for Lua library in /usr/lib/arm-linux-gnueabi and
/usr/include/lua5.1 (specified by the LUA_LIB and LUA_INC env) ... not
found
            ./configure: error: ngx_http_lua_module requires the Lua
or LuaJIT library and LUA_LIB is defined as /usr/lib/arm-linux-gnueabi
and LUA_INC (path for lua.h) is /usr/include/lua5.1, but we cannot
find standard Lua there.
======================

Here's what dpkg has after installing Lua:
======================
# dpkg -l | grep -i lua
ii  liblua5.1-0:armel                     5.1.5-4 armel        Shared
library for the Lua interpreter version 5.1
ii  liblua5.1-0-dev:armel                 5.1.5-4 armel
Development files for the Lua language version 5.1
ii  lua5.1                                5.1.5-4 armel        Simple,
extensible, embeddable programming language
ii  luarocks                              2.0.9-1 all
deployment and management system for Lua modules
======================
# dpkg -L liblua5.1-0
/.
/usr
/usr/lib
/usr/lib/arm-linux-gnueabi
/usr/lib/arm-linux-gnueabi/liblua5.1-c++.so.0.0.0
/usr/lib/arm-linux-gnueabi/liblua5.1.so.0.0.0
/usr/share
/usr/share/doc
/usr/share/doc/liblua5.1-0
/usr/share/doc/liblua5.1-0/README.Debian.gz
/usr/share/doc/liblua5.1-0/changelog.Debian.gz
/usr/share/doc/liblua5.1-0/changelog.gz
/usr/share/doc/liblua5.1-0/copyright
/usr/lib/arm-linux-gnueabi/liblua5.1-c++.so.0
/usr/lib/arm-linux-gnueabi/liblua5.1.so.0
======================
# dpkg -L liblua5.1-0-dev
/.
/usr
/usr/lib
/usr/lib/arm-linux-gnueabi
/usr/lib/arm-linux-gnueabi/liblua5.1.a
/usr/lib/arm-linux-gnueabi/liblua5.1-c++.a
/usr/lib/arm-linux-gnueabi/pkgconfig
/usr/lib/arm-linux-gnueabi/pkgconfig/lua5.1-c++.pc
/usr/lib/arm-linux-gnueabi/pkgconfig/lua5.1.pc
/usr/include
/usr/include/arm-linux-gnueabi
/usr/include/arm-linux-gnueabi/lua5.1-deb-multiarch.h
/usr/include/lua5.1
/usr/include/lua5.1/lua.h
/usr/include/lua5.1/lauxlib.h
/usr/include/lua5.1/lua.hpp
/usr/include/lua5.1/lualib.h
/usr/include/lua5.1/luaconf.h
/usr/share
/usr/share/doc
/usr/share/doc/liblua5.1-0-dev
/usr/share/doc/liblua5.1-0-dev/README.Debian.gz
/usr/share/doc/liblua5.1-0-dev/changelog.Debian.gz
/usr/share/doc/liblua5.1-0-dev/changelog.gz
/usr/share/doc/liblua5.1-0-dev/copyright
/usr/lib/arm-linux-gnueabi/liblua5.1.so
/usr/lib/arm-linux-gnueabi/liblua5.1-c++.so
======================
# dpkg -L lua5.1
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/lua5.1
/usr/share/doc/lua5.1/README.Debian.gz
/usr/share/doc/lua5.1/changelog.Debian.gz
/usr/share/doc/lua5.1/changelog.gz
/usr/share/doc/lua5.1/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/lua5.1.1.gz
/usr/share/man/man1/luac5.1.1.gz
/usr/bin
/usr/bin/lua5.1
/usr/bin/luac5.1
======================

Any idea what I should use for the env't variables?

Thank you.