我在windows xp(32位)系统中安装了luarocks,并按照
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/
现在,我尝试使用命令Settings\Ankur_Gupta37\Desktop\LuaRocks\2.1\lua\luarocks" luarocks安装luarocks安装"C :\Documents和Settings\Ankur_Gupta37\Desktop\LuaRocks\2.1\lua\luarocks“”来安装这个.rock文件。
(我将luasocket-2.0.2-5.src.rock放在"C :\Documents和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.**有人告诉我这个问题及其解决办法。
发布于 2013-08-02 08:24:47
您可以尝试从git安装最新版本。目前的状态是3.0 rc1。该版本与Lua 5.1/5.2兼容。
luarocks install https://raw.github.com/diegonehab/luasocket/master/luasocket-scm-0.rockspec或
luarocks install luasocket --only-server=http://luarocks.org/repositories/rocks-scm此岩石规范与gcc (MinGW)和MSVC合作。如果使用MSVC,则应该运行luarocks form Visual Studio Command Prompt,如果使用MinGW,则应该将路径添加到mingw32-gcc的% path %环境变量中。
https://stackoverflow.com/questions/18011416
复制相似问题