我按照可用的说明在我的 windows xp(32 位)系统中安装了 luarocks
http://luarocks.org/en/Installation_instructions_for_Windows
为了从 luarocks 安装 luasocket,我在命令提示符下使用了命令“luarocks install luasocket”。但最终出现错误:
**Warning: Failed searching manifest: Failed loading manifest: Failed fetching man
ifest for http://luarocks.org/repositories/rocks - Error fetching file: Failed d
ownloading http://luarocks.org/repositories/rocks/manifest
Error: No results matching query were found.**
所以它无法找到 luasocket.rock 文件。我从链接下载了文件luasocket-2.0.2-5.src.rock:
http://luarocks.org/repositories/rocks/
现在我尝试使用命令luarocks install luarocks install "C :\Documents and Settings\Ankur_Gupta37\Desktop\LuaRocks\2.1\lua\luarocks"安装这个 .rock 文件
(我将luasocket-2.0.2-5.src.rock放在位置“C:\Documents and Settings\Ankur_Gupta37\Desktop\LuaRocks\2.1\lua\luarocks\luasocket-2.0.2-5.src.rock”)
但又以错误告终:
**set INCLUDE=C:/Documents and Settings/Ankur_Gupta37/Desktop/LuaRocks/2.1/include
;%INCLUDE% &set LIB=C:/Documents and Settings/Ankur_Gupta37/Desktop/LuaRocks/2.1
;%LIB% &msbuild /p:"VCBuildAdditionalOptions= /useenv" luasocket.sln &mkdir mime
& mkdir socket &cp src/mime.dll mime/core.dll &cp src/socket.dll socket/core.dl
l
'msbuild' is not recognized as an internal or external command,
operable program or batch file.
cp: cannot stat `src/mime.dll': No such file or directory
cp: cannot stat `src/socket.dll': No such file or directory
Error: Build error: Failed building.**
任何人告诉我问题及其解决方案..