当前位置: 首页 > news >正文

CentOS 7.9安装Nginx1.24.0时报 checking for LuaJIT 2.x ... not found

Nginx1.24编译时,报LuaJIT2.x错误,

configuring additional modules
adding module in /www/server/nginx/src/ngx_devel_kit+ ngx_devel_kit was configured
adding module in /www/server/nginx/src/lua_nginx_module
checking for LuaJIT 2.x ... not found./configure: error: unsupported LuaJIT version; ngx_http_lua_module requires LuaJIT 2.x.

1.首先确认系统中是否存在,使用命令:luajit -v

# luajit -v
LuaJIT 2.1.0-beta3 -- Copyright (C) 2005-2022 Mike Pall. https://luajit.org/

2.如果存在 ,一般在 /usr/local/include 目录下

# ll /usr/local/include/luajit-2.1/
total 44
-rw-r--r-- 1 root root  6028 Jun  7 20:50 lauxlib.h
-rw-r--r-- 1 root root  4593 Jun  7 20:50 luaconf.h
-rw-r--r-- 1 root root 12650 Jun  7 20:50 lua.h
-rw-r--r-- 1 root root   135 Jun  7 20:50 lua.hpp
-rw-r--r-- 1 root root  3019 Jun  7 20:50 luajit.h
-rw-r--r-- 1 root root  1197 Jun  7 20:50 lualib.h

3.输入以下命令

export LUAJIT_INC=/usr/local/include/luajit-2.1/
export LUAJIT_LIB=/usr/local/lib

4.重新运行 ./configure 命令

5.以下错误是【./configure: error: unsupported LuaJIT build; ngx_http_lua_module requires LuaJIT with FFI enabled.】是因为没输入【export LUAJIT_LIB=/usr/local/lib】

configuring additional modules
adding module in /www/server/nginx/src/ngx_devel_kit+ ngx_devel_kit was configured
adding module in /www/server/nginx/src/lua_nginx_module
checking for LuaJIT library in  and /usr/local/include/luajit-2.1 (specified by the LUAJIT_LIB and LUAJIT_INC env, with -ldl) ... found
checking for LuaJIT 2.x ... found
checking for Lua language 5.1 ... found
checking for LuaJIT has FFI ... not found./configure: error: unsupported LuaJIT build; ngx_http_lua_module requires LuaJIT with FFI enabled.
http://www.lqws.cn/news/206137.html

相关文章:

  • [Go]context上下文--使用要点--源码分析--Go核心--并发编程
  • Ubuntu挂载本地镜像源(像CentOS 一样挂载本地镜像源)
  • SAP学习笔记 - 开发27 - 前端Fiori开发 Routing and Navigation(路由和导航)
  • 基于Python学习《Head First设计模式》第六章 命令模式
  • Redis :String类型
  • 1Panel运行的.net程序无法读取系统字体(因为使用了docker)
  • 深入剖析Nginx:从入门到高并发架构实战
  • Oracle业务用户的存储过程个数及行数统计
  • ClusterRole 和 ClusterRoleBinding 的关系及使用
  • python调用其它程序 os.system os.subprocess
  • SpringBoot-16-MyBatis动态SQL标签之if和where
  • 第1讲、包管理和环境管理工具Conda 全面介绍
  • 使用Python和Flask构建简单的机器学习API
  • 【Java学习笔记】StringBuilder类(重点)
  • C#使用MindFusion.Diagramming框架绘制流程图(2):流程图示例
  • 华为OD机试_2025 B卷_计算某个字符出现次数(Python,100分)(附详细解题思路)
  • 心理咨询技能竞赛流程方案
  • AOSP CachedAppOptimizer中的冻结和内存压缩功能
  • vector使用及模拟
  • nodejs中的I/O操作指的是什么?
  • 好未来0520上机考试题2:有效三角形的个数
  • 好未来0520上机考试题1:括号的最大嵌入深度
  • 微服务架构的性能优化:链路追踪与可观测性建设
  • # STM32F103 SD卡读写程序
  • [NOI2016] 网格
  • C++ 中的编译期计算(Compile-Time Computation)
  • 22、模板特例化
  • 双面沉金线路板制作流程解析:高可靠性PCB的核心工艺
  • bat批量去掉本文件夹中的文件扩展名
  • 数据类型 -- 字符