make[2]: *** No rule to make target `libinjection.h’, needed by `libinjection_wrap.c’. Stop.
报错:
make[1]: Leaving directory `/opt/openresty-1.15.8.2/build/lua-geoip-0.1.2'
cd /opt/openresty-1.15.8.2/build/lua-libinjection-3.9.1 && make DESTDIR= LUA_INCLUDE_DIR=/opt/openresty-1.15.8.2/build/luajit-root/usr/local/openresty/luajit/include/luajit-2.1 LU
A_LIB_DIR=/usr/local/openresty/lualib CC=ccmake[1]: Entering directory `/opt/openresty-1.15.8.2/build/lua-libinjection-3.9.1'
(cd lua; make)
make[2]: Entering directory `/opt/openresty-1.15.8.2/build/lua-libinjection-3.9.1/lua'
cp ../src/libinjection*.h ../src/libinjection*.c .
make[2]: *** No rule to make target `libinjection.h', needed by `libinjection_wrap.c'. Stop.
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/opt/openresty-1.15.8.2/build/lua-libinjection-3.9.1/lua'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/opt/openresty-1.15.8.2/build/lua-libinjection-3.9.1'
make: *** [all] Error 2
用gmake
即可:
gmake -j 8
gmake install