在安装了luasocket后,Luarocks会出现故障。

我在使用 Arch Linux,lua 的版本为 5.1,luarocks 的版本为 2.0.12。

在运行 luarocks install luasocket 后,我无法安装任何其他的包。我看到的错误信息是:

Warning: Failed searching manifest: Failed loading manifest: Failed fetching manifest for http://www.luarocks.org/repositories/rocks - Error fetching file: Failed downloading http://www.luarocks.org/repositories/rocks/manifest - closed
Warning: Failed searching manifest: Failed loading manifest: Failed fetching manifest for http://luarocks.giga.puc-rio.br/ - Error fetching file: Failed downloading http://luarocks.giga.puc-rio.br/manifest - closed
Warning: Failed searching manifest: Failed loading manifest: Failed fetching manifest for http://luafr.org/luarocks/rocks - Error fetching file: Failed downloading http://luafr.org/luarocks/rocks/manifest - closed
...

看起来好像安装 luasocket 损坏了 luarocks。我搜索了一下,有个人在 Windows 上似乎遇到了类似的问题,他好像通过删除 luasocket 的 dll 文件解决了这个问题(什么?)。

有别的人也遇到这个问题吗?有什么解决方法吗?

点赞
用户856565
用户856565

Luarocks 是用 Lua 编写的,并使用 luasocket 自身,因此可能存在不兼容性。Luarocks 使用的是 luasocket 2.0.2。我觉得 Luarocks 出现这种问题很奇怪,您可能需要提交 Bug,或者至少联系邮件列表

2013-01-15 15:13:15