使用luarocks安装luasocket
2013-8-2 7:42:7
收藏:0
阅读:152
评论:1
我按照http://luarocks.org/en/Installation_instructions_for_Windows上的说明在我的Windows XP(32位)系统上安装了Luarocks,为了安装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.**
有人能告诉我问题及其解决方案吗?
点赞
评论区的留言会收到邮件通知哦~
推荐文章
- 如何将两个不同的lua文件合成一个 东西有点长 大佬请耐心看完 我是小白研究几天了都没搞定
- 如何在roblox studio中1:1导入真实世界的地形?
- 求解,lua_resume的第二次调用继续执行协程问题。
- 【上海普陀区】内向猫网络招募【Skynet游戏框架Lua后端程序员】
- SF爱好求教:如何用lua实现游戏内调用数据库函数实现账号密码注册?
- Lua实现网站后台开发
- LUA错误显式返回,社区常见的规约是怎么样的
- lua5.3下载库失败
- 请问如何实现文本框内容和某个网页搜索框内容连接,并把网页输出来的结果反馈到另外一个文本框上
- lua lanes多线程使用
- 一个kv数据库
- openresty 有没有比较轻量的 docker 镜像
- 想问一下,有大佬用过luacurl吗
- 在Lua执行过程中使用Load函数出现问题
- 为什么 neovim 里没有显示一些特殊字符?
- Lua比较两个表的值(不考虑键的顺序)
- 有个lua简单的项目,外包,有意者加微信 liuheng600456详谈,最好在成都
- 如何在 Visual Studio 2022 中运行 Lua 代码?
- addEventListener 返回 nil Lua
- Lua中获取用户配置主目录的跨平台方法
您可以尝试从 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该 rockspec 支持 gcc(MinGW)和 MSVC。 如果您使用 MSVC,则应在“Visual Studio 命令提示符”中运行 luarocks。 如果您使用 MinGW,则应将
mingw32-gcc的路径添加到 %PATH% 环境变量中。