Thread:Extension talk:Scribunto/Cannot install sandbox for Lua 5.1.4 LuaJIT 1.1.8

Having this error while installing luasandbox. I tried with both Lua 5.2 and 5.1. I know that most Lua based code out there isn't compatible with Lua 5.2. I use LuaJIT 2.0.3. Does it have to be LuaJIT 1.1.x for luasandbox to install?

Thanks !!

cc -I. -I/my_src/luasandbox/luasandbox -DPHP_ATOM_INC -I/my_src/luasandbox/luasandbox/include -I/my_src/luasandbox/luasandbox/main -I/my_src/luasandbox/luasandbox -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /my_src/luasandbox/luasandbox/library.c -fPIC -DPIC -o .libs/library.o /my_src/luasandbox/luasandbox/library.c: In function ‘luasandbox_lib_register’: /my_src/luasandbox/luasandbox/library.c:134: error: ‘LUA_GLOBALSINDEX’ undeclared (first use in this function) /my_src/luasandbox/luasandbox/library.c:134: error: (Each undeclared identifier is reported only once /my_src/luasandbox/luasandbox/library.c:134: error: for each function it appears in.) make: *** [library.lo] Error 1