我有一個關於Lua和https的問題。我正在爲支持Lua的路由器開發一些軟件。壞事是這個路由器不支持調試。所以我正在爲Lua尋找一個IDE。Lua for windows https錯誤:「%1不是有效的Win32應用程序」
我在Win 7 64位操作系統上使用Lua開發工具和LuaForWindows。直到現在,一切都像它應該的樣子。但現在我必須通過https調用某些網址。路由器本身有一個包ssl.lua,你可以用require ("ssl.https")
語句來使用這個包。但我想用Lua開發工具進行調試。我正在尋找與Windows兼容的軟件包,並找到了「Luasec」項目。
正如此線程中提到的「Lua with the Freebase API」;我已經下載了Luasec。
我已經把ssl.lua
和SSL文件夾我的盧阿安裝中的我已經把ssl.dll
在clibs文件夾中的LUA安裝中。
對於測試,我只在我的Lua文件中做了一個require(「ssl.https」),但它崩潰了。它說:
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)
我測試過它在Win 7的32位PC太並將其與此崩潰:
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)
任何人可以幫我得到這個工作?
你是否檢查過Lua和庫的指令集匹配? 32/64位 – dualed