xiaocang 这个我刚刚看issue的时候注意到了,发现路径错误了,是2.1(就如我最早echo的2.1),但是改成2.1也报同样的错误。
`
echo $LUAJIT_LIB
/usr/local/lib
echo $LUAJIT_INC
/usr/local/include/luajit-2.1
echo $LUA_INCLUDE_DIR
/usr/local/include/luajit-2.1
pwd
/usr/local/include/luajit-2.1
ls
lauxlib.h luaconf.h lua.h lua.hpp luajit.h lualib.h
`
./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/nginx/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --error-log-path=/usr/local/nginx/logs/error.log --with-ld-opt="-Wl,-rpath,/usr/local/lib" --add-module=/usr/local/src/ngx_devel_kit-0.3.1 --add-module=/usr/local/src/lua-nginx-module-0.10.19
错误依然是这样:
adding module in /usr/local/src/lua-nginx-module-0.10.19
checking for LuaJIT 2.x ... not found
./configure: error: unsupported LuaJIT version; ngx_http_lua_module requires LuaJIT 2.x.