【发布时间】:2018-10-31 15:58:03
【问题描述】:
我可以通过 luarocks 成功安装 luasocket (https://github.com/diegonehab/luasocket),但在特定环境 (https://dev.etlegacy.com/boards/2/topics/3388?r=3401) 中工作时遇到问题。
据我所知,存在某种架构不匹配。我假设这是因为 luarocks 默认在我的 OSX 上安装 64 位模块?
有没有办法专门将 luasocket 构建为 32 位?
感谢您的帮助。下面是具体的错误输出:
Lua API:运行 lua 脚本的 G_LuaStartVM 错误:从文件“lualibs/lib/lua/5.3/socket/core.so”加载模块“socket.core”时出错: dlopen(lualibs/lib/lua/5.3/socket/core.so, 6):找不到合适的图像。发现: lualibs/lib/lua/5.3/socket/core.so:mach-o,但架构错误 /Applications/ET Legacy/lualibs/lib/lua/5.3/socket/core.so:mach-o,但架构错误
【问题讨论】: