Tried to install a C module via luarocks (under Lua 5.1)
Loading C Module fails because Lua tries to load the DLL as a Lua-Module
Checked package.path and it contains ?.dll snippets
Looked up settings in setlua.bat and it seems LUA_PATH and LUA_CPATH are interchanged
Fixed following lines in setlua.bat:
set LUA_PATH=;;%myownpath%..\share\lua\5.1\?.lua;%myownpath%..\share\lua\5.1\?\init.lua
set LUA_CPATH=;;%myownpath%..\lib\lua\5.1\?.dll
REM setup Lua paths for 5.2
set LUA_PATH_5_2=;;%myownpath%..\share\lua\5.2\?.lua;%myownpath%..\share\lua\5.2\?\init.lua
set LUA_CPATH_5_2=;;%myownpath%..\lib\lua\5.2\?.dll
Fixed following lines in setlua.bat:
set LUA_PATH=;;%myownpath%..\share\lua\5.1\?.lua;%myownpath%..\share\lua\5.1\?\init.lua set LUA_CPATH=;;%myownpath%..\lib\lua\5.1\?.dll REM setup Lua paths for 5.2 set LUA_PATH_5_2=;;%myownpath%..\share\lua\5.2\?.lua;%myownpath%..\share\lua\5.2\?\init.lua set LUA_CPATH_5_2=;;%myownpath%..\lib\lua\5.2\?.dll