你这个是 动态库 没找到, 从你编译指定的 --prefix= 路劲去找
libluajit-5.1.so.2 => /usr/local/openresty/luajit/lib/libluajit-5.1.so.2 (0x00007f77398fb000)
# ldd nginx
linux-vdso.so.1 => (0x00007fff45dc4000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f7739ffa000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7739dde000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f7739ba7000)
libluajit-5.1.so.2 => /usr/local/openresty/luajit/lib/libluajit-5.1.so.2 (0x00007f77398fb000)
libm.so.6 => /lib64/libm.so.6 (0x00007f77395f9000)
libjson-c.so.2 => /lib64/libjson-c.so.2 (0x00007f77393ee000)
libpcre.so.1 => /usr/local/openresty/pcre/lib/libpcre.so.1 (0x00007f773917f000)
libssl.so.1.1 => /usr/local/openresty/openssl/lib/libssl.so.1.1 (0x00007f7738eeb000)
libcrypto.so.1.1 => /usr/local/openresty/openssl/lib/libcrypto.so.1.1 (0x00007f77389fa000)
libz.so.1 => /usr/local/openresty/zlib/lib/libz.so.1 (0x00007f77387de000)
libGeoIP.so.1 => /lib64/libGeoIP.so.1 (0x00007f77385ae000)
libc.so.6 => /lib64/libc.so.6 (0x00007f77381e0000)
/lib64/ld-linux-x86-64.so.2 (0x00007f773a1fe000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007f7737fdd000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f7737dc7000)