【问题标题】:Build nginx with Lua on RPM system在 RPM 系统上使用 Lua 构建 nginx
【发布时间】:2012-05-25 22:13:38
【问题描述】:

我想用 Lua 第三方模块构建 nginx。该模块需要 Lua 库。 Lua 5.1 安装在我的服务器上。但是当我使用 nginx lua 模块的路径运行 ./compile 时。抛出错误:

checking for Lua library ... not found 
checking for Lua library in /usr/local/ ... not found 
checking for Lua library in /usr/pkg/ ... not found 
checking for Lua library in /opt/local/ ... not found 
checking for Lua library in /usr/local/../lua51/ ... not found 
checking for Lua library in /usr/ ... not found  
./configure: error: ngx_http_lua_module requires the Lua library.

我尝试通过导出LUA_LIB=/usr/local/lib/ 提供路径,但这也没有用。

任何帮助将不胜感激。

【问题讨论】:

    标签: nginx lua rpm


    【解决方案1】:

    也许你需要包lua-devel

    【讨论】:

    • 这就像一个魅力,我还通过为每个依赖项安装 DEVELOPER 包来解决其他依赖项。
    • 以下对我有用:sudo apt-get install libluajit-5.1-dev
    猜你喜欢
    • 1970-01-01
    • 2016-11-06
    • 2015-05-16
    • 2017-01-28
    • 1970-01-01
    • 2014-02-15
    • 2011-12-31
    • 2020-05-20
    • 1970-01-01
    相关资源
    最近更新 更多