Warning: Failed searching manifest: Failed downloading https://luarocks.org/manifest-5.3 - host or service not provided, or not known Warning: Failed searching manifest: Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest-5.3 - host or service not provided, or not known Warning: Failed searching manifest: Failed downloading https://luafr.org/luarocks/manifest-5.3 - host or service not provided, or not known Warning: Failed searching manifest: Failed downloading http://luarocks.logiceditor.com/rocks/manifest-5.3 - host or service not provided, or not known
Error: No results matching query were found for Lua 5.3. To check if it is available for other Lua versions, use --check-lua-versions.
解决办法: 在 GCC 环境中 bin 文件夹中,找到 x86_64-w64-mingw32-gcc-9.2.0.exe,复制一份并改名成 mingw32-gcc.exe。
C 编译不通过
1 2 3 4 5
src/luasocket.c: In function 'global_skip': src/luasocket.c:67:18: warning: implicit declaration of function 'luaL_checkint'; did you mean 'luaL_checkany'? [-Wimplicit-function-declaration] 67 | int amount = luaL_checkint(L, 1); | ^~~~~~~~~~~~~ | luaL_checkany
安装 在里层 luasocket-3.0rc1-1 目录下使用 CMD 命令 luarocks make luasocket-3.0rc1-1.rockspec
GCC 炸了
1 2 3 4 5 6 7
C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/windows/system32/ws2_32.dll when searching for -lws2_32 C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/windows/system32/msvcrt.dll when searching for -lmsvcrt C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/windows/system32/advapi32.dll when searching for -ladvapi32 C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/windows/system32/shell32.dll when searching for -lshell32 C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/windows/system32/user32.dll when searching for -luser32 C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/windows/system32/kernel32.dll when searching for -lkernel32 C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible c:/windows/system32/msvcrt.dll when searching for -lmsvcrt
Lua 5.3.6 Copyright (C) 1994-2020 Lua.org, PUC-Rio > require("socket") stdin:1: module 'socket' not found: no field package.preload['socket'] no file 'E:\kanri program\Lua\bin\lua\socket.lua' no file 'E:\kanri program\Lua\bin\lua\socket\init.lua' no file 'E:\kanri program\Lua\bin\socket.lua' no file 'E:\kanri program\Lua\bin\socket\init.lua' no file 'E:\kanri program\Lua\bin\..\share\lua\5.3\socket.lua' no file 'E:\kanri program\Lua\bin\..\share\lua\5.3\socket\init.lua' no file '.\socket.lua' no file '.\socket\init.lua' no file 'C:\Program Files (x86)\Lua\5.3.6\lua\socket.luac' no file 'E:\kanri program\Lua\bin\socket.dll' no file 'E:\kanri program\Lua\bin\..\lib\lua\5.3\socket.dll' no file 'E:\kanri program\Lua\bin\loadall.dll' no file '.\socket.dll' stack traceback: [C]: in function 'require' stdin:1: in main chunk [C]: in ?