Lua 5.2 添加luasocket(不稳定) [英] Lua 5.2 adding luasocket (unstable)

查看:39
本文介绍了Lua 5.2 添加luasocket(不稳定)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 lua 5.2 中使用 luasocket.我从 git 存储库下载了代码并构建了它.然后进行 make install 以生成 core.dll 和 mime.dll.将它们放入我正在开发的自定义 lua 程序目录 [CPATH] 中并尝试加载它.但我收到以下错误消息:

Im trying to use luasocket with lua 5.2. i downloaded the code form the git repository and built it. then made a make install so that it generated core.dll and mime.dll. put those into the custom lua program directory [CPATH] im developing and tried loading it. But i get following error message:

Failed at error loading module 'socket.core' from file 'D:[..myprogram..]socketcore.dll':
Module was not found.

我如何检查 dll 是否正确.还是我做错了什么?

how can i check if the dll is correct. or did i do anything wrong?

谢谢

推荐答案

很可能您正在加载为 Lua 5.1 而不是 Lua 5.2 编译的套接字模块(或者至少它与我在这种情况下遇到的错误相同).您的路径中是否有适用于 Lua 5.1 的套接字模块?它可能随 LuaForWindows 或其他软件包一起提供.您可以尝试删除/移动您编译的套接字 DLL(对于 Lua 5.2),看看是否会出现相同的错误.

Most likely you are loading socket modules that are compiled for Lua 5.1, not Lua 5.2 (or at least it's the same error I get in a case like that). Is it possible that you have socket module for Lua 5.1 somewhere in your path? It may come with LuaForWindows or another package. You can try to remove/move the socket DLLs you compiled (for Lua 5.2) and see if you get the same error.

这篇关于Lua 5.2 添加luasocket(不稳定)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆