【问题标题】:lua 5.3 + luasocket 3.0rc1-2: undefined symbol: luaL_setfuncslua 5.3 + luasocket 3.0rc1-2:未定义符号:luaL_setfuncs
【发布时间】:2015-07-15 23:09:38
【问题描述】:

我通过 luarocks 安装了 Luasocket 3.0rc1-2,并在服务器上运行 Lua 5.3。

当我使用 LuaJIT (2.1) 在 nginx (1.8.0) 上运行需要 luasocket 的脚本时,它会产生错误消息:

lua entry thread aborted: runtime error: error loading module 'socket.core' from file '/usr/local/lib/lua/5.3/socket/core.so':
    /usr/local/lib/lua/5.3/socket/core.so: undefined symbol: luaL_setfuncs

在luasocket github页面上,我看到Out of the box support for Lua 5.3.

我该如何解决这个错误?

【问题讨论】:

    标签: nginx lua luasocket luarocks


    【解决方案1】:

    luajit 不是 lua 5.3。您不能混合运行时。

    你有一个为 lua 5.3 构建的 luasocket 版本,但你运行的是 luajit 2.1。

    【讨论】:

    • 啊,我明白了。我将降级回5.1。谢谢!
    猜你喜欢
    • 2014-02-13
    • 1970-01-01
    • 2014-11-26
    • 1970-01-01
    • 1970-01-01
    • 2012-04-02
    • 1970-01-01
    • 1970-01-01
    • 2017-04-29
    相关资源
    最近更新 更多