报错代码:
./configure: error: unsupported LuaJIT version; ngx_http_lua_module requires LuaJIT 2.x.
解决方法:
先查看是否已安装lua-devel,直接执行安装即可
yum install lua-devel
添加wlnmp源
rpm -ivh https://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm
安装LuaJIT2.X
yum install wluaJIT2
添加以下代码至全局变量 /etc/profile
export LUAJIT_LIB=/usr/local/lib
export LUAJIT_INC=/usr/local/include/luajit-2.1
然后刷新变量,重新编译即可
source /etc/profile
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容