./configure: error:
ngx_http_lua_module requires the Lua or LuaJIT library and LUAJIT_LIB is defined
as /usr/local/lib and LUAJIT_INC (path for lua.h) /usr/local/include/luajit-2.0, but we cannot find LuaJIT
there.
================================================================================================================================================================================
10078199@A23183125 ~
$ cd /home/
10078199@A23183125 /home
$ ls
10078199 nginx_setup
10078199@A23183125 /home
$ cd nginx_setup/
10078199@A23183125 /home/nginx_setup
$ ls
LuaJIT-2.0.4 lua-nginx-module
nginx_setup.sh nginx-1.9.7 ngx_devel_kit-master
10078199@A23183125 /home/nginx_setup
$ cd LuaJIT-2.0.4/
10078199@A23183125 /home/nginx_setup/LuaJIT-2.0.4
$ make && make
install
====
Building LuaJIT 2.0.4 ====
make -C src
make[1]: Entering directory
'/home/nginx_setup/LuaJIT-2.0.4/src'
make[1]: Nothing to be done for 'default'.
make[1]: Leaving directory
'/home/nginx_setup/LuaJIT-2.0.4/src'
==== Successfully built LuaJIT 2.0.4 ====
==== Installing LuaJIT
2.0.4 to /usr/local ====
mkdir -p /usr/local/bin /usr/local/lib
/usr/local/include/luajit-2.0 /usr/local/share/man/man1 /usr/local/lib/pkgconfig
/usr/local/share/luajit-2.0.4/jit /usr/local/share/lua/5.1
/usr/local/lib/lua/5.1
cd src && install -m 0755 luajit
/usr/local/bin/luajit-2.0.4
cd src && test -f libluajit.a &&
install -m 0644 libluajit.a /usr/local/lib/libluajit-5.1.a || :
rm -f
/usr/local/bin/luajit /usr/local/lib/libluajit-5.1.so.2.0.4
/usr/local/lib/libluajit-5.1.so /usr/local/lib/libluajit-5.1.so
cd src && test -f
libluajit.so && \
install -m 0755 libluajit.so
/usr/local/lib/libluajit-5.1.so.2.0.4 && \
ldconfig -n /usr/local/lib
&& \
ln -sf libluajit-5.1.so.2.0.4
/usr/local/lib/libluajit-5.1.so && \
ln -sf libluajit-5.1.so.2.0.4
/usr/local/lib/libluajit-5.1.so || :
cd etc && install -m 0644 luajit.1
/usr/local/share/man/man1
cd etc && sed -e
"s|^prefix=.*|prefix=/usr/local|" -e "s|^multilib=.*|multilib=lib|" luajit.pc
> luajit.pc.tmp && \
install -m 0644 luajit.pc.tmp
/usr/local/lib/pkgconfig/luajit.pc && \
rm -f luajit.pc.tmp
cd src && install -m 0644
lua.h lualib.h lauxlib.h luaconf.h lua.hpp luajit.h
/usr/local/include/luajit-2.0
cd src/jit && install -m 0644 bc.lua v.lua
dump.lua dis_x86.lua dis_x64.lua dis_arm.lua dis_ppc.lua dis_mips.lua
dis_mipsel.lua bcsave.lua vmdef.lua
/usr/local/share/luajit-2.0.4/jit
ln -sf luajit-2.0.4 /usr/local/bin/luajit
==== Successfully
installed LuaJIT 2.0.4 to /usr/local ====
10078199@A23183125 /home/nginx_setup/LuaJIT-2.0.4
$ cd ..
10078199@A23183125 /home/nginx_setup
$ cd nginx-1.9.7/
10078199@A23183125 /home/nginx_setup/nginx-1.9.7
$ export
LUAJIT_LIB=/usr/local/lib
10078199@A23183125 /home/nginx_setup/nginx-1.9.7
$ export
LUAJIT_INC=/usr/local/include/luajit-2.0
10078199@A23183125 /home/nginx_setup/nginx-1.9.7
$
10078199@A23183125 /home/nginx_setup/nginx-1.9.7
$ ./configure
--prefix=/home/nginx197 --add-module=../lua-nginx-module
checking for OS
+ CYGWIN_NT-6.1
2.3.1(0.291/5/3) i686
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.9.3
(GCC)
checking
for gcc -pipe switch ... found
checking for gcc builtin atomic operations ...
found
checking
for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ...
found
checking
for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not
found
checking
for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ...
found
checking
for crypt.h ... found
checking for CYGWIN_NT-6.1 specific
features
grep:
/etc/group: No such file or directory
checking for nobody group ... not found
grep: /etc/group: No such
file or directory
checking for nogroup group ... not found
checking for poll() ...
found
checking
for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not
found
checking
for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for
posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not
found
checking
for directio() ... not found
checking for statfs() ... not found
checking for statvfs() ...
found
checking
for dlopen() ... found
checking for sched_yield() ... found
checking for SO_SETFIB ...
not found
checking for SO_REUSEPORT ... not found
checking for
SO_ACCEPTFILTER ... not found
checking for TCP_DEFER_ACCEPT ... not
found
checking
for TCP_KEEPIDLE ... not found
checking for TCP_FASTOPEN ... not found
checking for TCP_INFO ...
not found
checking for accept4() ... found
checking for eventfd() ... not
found
checking
for eventfd() (SYS_eventfd) ... not found
checking for int size ... 4 bytes
checking for long size ...
4 bytes
checking for long long size ... 8 bytes
checking for void * size
... 4 bytes
checking for uint64_t ... found
checking for sig_atomic_t ...
found
checking
for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ...
found
checking
for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ...
uintptr_t found
checking for system byte ordering ... little
endian
checking for size_t size ... 4 bytes
checking for off_t size
... 8 bytes
checking for time_t size ... 4 bytes
checking for
setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ...
found
checking
for sys_nerr ... found
checking for localtime_r() ... found
checking for
posix_memalign() ... found
checking for memalign() ... found
checking for
mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ...
found
checking
for System V shared memory ... not found
checking for POSIX semaphores ... found
checking for struct
msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct
tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not
found
checking
for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ...
found
checking
for openat(), fstatat() ... found
checking for getaddrinfo() ... found
configuring additional
modules
adding
module in ../lua-nginx-module
checking for LuaJIT library in /usr/local/lib and
/usr/local/include/luajit-2.0 (specified by the LUAJIT_LIB and LUAJIT_INC env,
with -ldl) ... not found
checking for LuaJIT library in /usr/local/lib and
/usr/local/include/luajit-2.0 (specified by the LUAJIT_LIB and LUAJIT_INC env)
... not found
./configure: error: ngx_http_lua_module requires the
Lua or LuaJIT library and LUAJIT_LIB is defined as /usr/local/lib and LUAJIT_INC
(path for lua.h) /usr/local/include/luajit-2.0, but we cannot find LuaJIT
there.