I have MW 1.28 and Lua 5.1 on Arch Linux. I'm trying to build LuaSandbox so I can get Scribunto to work.
I need Scribunto to run the Template:Navbox that Wikipedia uses; that's my goal.
Trying to build with:
$ sudo phpize && sudo ./configure && sudo make && sudo make install
./configure fails with this message:
checking for lua >= 5.1 lua < 5.2... no checking for lua5.1... no checking for lua-5.1... no checking for luajit... no configure: error: Package requirements (luajit) were not met: No package 'luajit' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables LUA_CFLAGS and LUA_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.
I have the required Lua libs:
$ ls /usr/include/lua5.1 lauxlib.h lua.h lua.hpp luaconf.h lualib.h
And I've tried
export LUA_LIBS='-L/usr/include/lua5.1' and
export PKG_CONFIG_PATH='/usr/include/lua5.1' but no change.
How do I get LuaSandbox to build?