简体   繁体   English

如何在OSX或32位core.so上安装32位luasocket

[英]How to install 32 bit luasocket on OSX or with 32 bit core.so

I can successfully install luasocket ( https://github.com/diegonehab/luasocket ) via luarocks, but I am having an issue with it working within a certain environment ( https://dev.etlegacy.com/boards/2/topics/3388?r=3401 ). 我可以通过luarocks成功安装luasocket( https://github.com/diegonehab/luasocket ),但是在特定环境( https://dev.etlegacy.com/boards/2/topics)中工作时,我遇到了问题/ 3388?r = 3401 )。

As far as I can tell, there's some sort of architecture mismatch. 据我所知,存在某种架构上的不匹配。 I'm assuming this is because luarocks installs 64 bit modules on my OSX by default? 我假设这是因为luarocks默认在OSX上安装64位模块?

Is there a way to build luasocket specifically as 32 bit? 有没有一种方法可以将luasocket专门构建为32位?

Thanks for the help. 谢谢您的帮助。 Here's the specific error output: 这是特定的错误输出:

Lua API: G_LuaStartVM error running lua script: error loading module 'socket.core' from file 'lualibs/lib/lua/5.3/socket/core.so': dlopen(lualibs/lib/lua/5.3/socket/core.so, 6): no suitable image found. 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):找不到合适的图像。 Did find: lualibs/lib/lua/5.3/socket/core.so: mach-o, but wrong architecture /Applications/ET Legacy/lualibs/lib/lua/5.3/socket/core.so: mach-o, but wrong architecture 确实找到了:lualibs / lib / lua / 5.3 / socket / core.so:mach-o,但是架构错误/ Applications / ET Legacy / lualibs / lib / lua / 5.3 / socket / core.so:mach-o,但是错误建筑

我不确定如何配置luarocks来做到这一点,但是我将luasocket编译为ZeroBrane Studio存储库中的Lua 5.1、5.2和5.3的通用二进制文件(如clibsXX/socket/core.dylib文件)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM