我正在尝试通过luarocks安装geoip模块,但它多次显示错误。 luarocks --from = http://geoip.luaforge.net/rocks安装geoip --verbose
输出
io.popen:'pwd'
os.execute:cd'/usr/local/share/lua/5.1'&&测试'-e''/ usr / local / lib / luarocks / rocks' 结果:1 1(数字):0
os.execute:cd'/usr/local/share/lua/5.1'&&测试'-d''/ usr / local / lib / luarocks / rocks' 结果:1 1(数字):0
os.execute:cd'/usr/local/share/lua/5.1'&&测试'-e''/ usr / local' 结果:1 1(数字):0
os.execute:cd'/usr/local/share/lua/5.1'&&测试'-d''/ usr / local' 结果:1 1(数字):0
os.execute:cd'/usr/local/share/lua/5.1'&&测试'-e''/ usr / local' 结果:1 1(数字):0
os.execute:cd'/usr/local/share/lua/5.1'&& mkdir -p'/root/.cache/luarocks/http___geoip.luaforge.net_rocks' 结果:1 1(数字):0
os.execute:cd'/usr/local/share/lua/5.1'&&测试'-d''/ root /.cache/luarocks/http___geoip.luaforge.net_rocks' 结果:1 1(数字):0
os.execute:cd'/root/.cache/luarocks/http___geoip.luaforge.net_rocks'& amp ;& amp; rm'-rf''/ root / .cache /luarocks / httpp___geoip.luaforge.net_rocks/manifest-5.1' 结果:1 1(数字):0
os.execute:cd'/root/.cache/luarocks/http___geoip.luaforge.net_rocks'& amp ;& amp; unzip -n'/root/.cache/luarocks/http___geoip.luaforge.net_rocks/manifest-5.1.zip' 存档:/root/.cache/luarocks/http___geoip.luaforge.net_rocks/manifest-5.1.zip 找不到中心目录签名。这个文件不是 一个zip文件,或者它构成一个多部分存档的磁盘。在里面 后一种情况,将在上面找到中心目录和zipfile注释 此存档的最后一个磁盘。 解压缩:找不到/root/.cache/luarocks/http___geoip.luaforge.net_rocks/manifest-5.1.zip中的zipfile目录或者 /root/.cache/luarocks/http___geoip.luaforge.net_rocks/manifest-5.1.zip.zip,找不到/root/.cache/luarocks/http___geoip.luaforge.net_rocks/manifest-5.1.zip.ZIP,期间。 结果:1 1(数字):2304
os.execute:cd'/usr/local/share/lua/5.1'&& rm'-rf''/ root / .cache /luarocks / httpp___geoip.luaforge.net_rocks/manifest-5.1.zip' 结果:1 1(数字):0
os.execute:cd'/usr/local/share/lua/5.1'&& rm'-rf''/ root / .cache /luarocks / httpp___geoip.luaforge.net_rocks/manifest-5.1.zip.timestamp' 结果:1 1(数字):0 警告:搜索清单失败:提取清单文件失败
os.execute:cd'/usr/local/share/lua/5.1'&& mkdir -p'/root/.cache/luarocks/https___rocks.moonscript.org' 结果:1 1(数字):0
os.execute:cd'/usr/local/share/lua/5.1'&&测试'-d''/ root /.cache/luarocks/https___rocks.moonscript.org' 结果:1 1(数字):0
os.execute:cd'/root/.cache/luarocks/https___rocks.moonscript.org'& amp ;& amp; rm'-rf''/ root / .cache /luarocks / httpps___rocks.moonscript.org/manifest-5.1' 结果:1 1(数字):0
os.execute:cd'/root/.cache/luarocks/https___rocks.moonscript.org'& amp ;& amp; unzip -n'/root/.cache/luarocks/https___rocks.moonscript.org/manifest-5.1.zip' 存档:/root/.cache/luarocks/https___rocks.moonscript.org/manifest-5.1.zip 膨胀:清单-5.1 结果:1 1(数字):0
错误:未找到与查询匹配的结果。
但是当我能够下载此文件 wget http://geoip.luaforge.net/rocks/manifest 时 任何人都可以帮助...我在做错了..
我也试过构建 使 cc -Wall -ansi -c -o geoip.o geoip.c geoip.c:13:17:致命错误:lua.h:没有这样的文件或目录 编译终止。 :目标'geoip.o'的配方失败 make:*** [geoip.o]错误1
luarocks version = / usr / bin / luarocks 2.2.0 OS = Ubuntu 16.04.3 LTS
答案 0 :(得分:0)
https://luaforge.net已不再维护;您正在使用不推荐使用的URL。
对于Lua的当前geoip库,请改用luarocks install lua-geoip
。