Chr*_*anR 5 windows ssl https lua luasec
I've got a question about Lua and https. I'm developing some software for a router which supports Lua. The bad thing is that this router doesn't support debugging. So I was looking for an IDE for Lua.
I'm using the Lua Development Tools and LuaForWindows on a Win 7 64-bit OS. Till now everything works like it should. But now I have to call some urls by https. The router itself has a package ssl.lua and you can user this package with the require ("ssl.https") statement. But I want to debug it with the Lua Development Tools. I was searching for Windows compatible packages and have found the "Luasec" project.
As mentioned in this thread "Lua with the Freebase API"; I have downloaded Luasec.
I have put the ssl.lua and the ssl folder within my lua installation the I have put the ssl.dll in the clibs folder within the lua installation.
For testing I only do a require ("ssl.https") in my Lua file but it crashes. It says:
C:\Program Files (x86)\Lua\5.1\lua.exe: error loading module 'ssl.core' from file 'C:\Program Files (x86)\Lua\5.1\clibs\ssl.dll':
%1 ist keine zulässige Win32-Anwendung. (%1 is no a valid Win32 application)
Run Code Online (Sandbox Code Playgroud)
I've tested it on a Win 7 32 bit pc too and it crashes with this:
C:\Program Files\Lua\5.1\lua.exe: error loading module 'ssl.core' from file 'C:\Program Files\Lua\5.1\clibs\ssl.dll':
Das angegebene Modul wurde nicht gefunden. (The module cant be found)
Run Code Online (Sandbox Code Playgroud)
Can anybody please help me getting this work?
我在 Windows 7 64 位上也遇到了同样的问题,使用 Alien 加载 Windows DLL。
我加载的库(即DLL)是一个64位DLL,但Lua for Windows是一个32位应用程序。
我加载了 32 位版本的 DLL,并且可以正常工作。看看您是否也能找到您的库的 32 位版本。
至于你在 32 位 Windows 上的问题,这当然可能是由于其他因素造成的,但如果你使用相同的 64 位 DLL,我想这也不起作用。
| 归档时间: |
|
| 查看次数: |
2634 次 |
| 最近记录: |