Hello!
On Tue, Aug 12, 2014 at 11:08 PM, wxianfeng wrote:
> 我的 luajit 已经安装, LUAJIT_LIB, LUAJIT_INC 环境变量也指定了, 但是始终提示找不到 luajit, 会是什么问题?
>
> checking for LuaJIT library in /home/admin/luajit/lib and
> /home/admin/luajit/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 /home/admin/luajit/lib and LUAJIT_INC
> (path for lua.h) /home/admin/luajit/include/luajit-2.0, but we cannot find
> LuaJIT there.
>
该错误一般是因为你的 LuaJIT 安装不完整或者你指定的路径有错误。
确定具体的原因可以查看 nginx 生成的日志文件,即 nginx 源码树里的 objs/autoconf.err 文件。
值得一提的是,为避免这样不必要的麻烦,可以考虑直接使用 OpenResty 软件包:
http://openresty.org/#Download
Regards,
-agentzh