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

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

问题描述

我正在尝试将luasocket与lua 5.2一起使用.我从git仓库下载了代码并构建了它.然后进行安装,以便生成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..]\socket\core.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天全站免登陆