On 26 February 2014 16:43, RJP Computing <rjpcomput...@gmail.com> wrote: > On Wed, Feb 26, 2014 at 1:06 PM, Philipp Janda <siffie...@gmx.net> wrote: >> >> Am 26.02.2014 17:55 schröbte RJP Computing: >> > On Wed, Feb 26, 2014 at 11:05 AM, Philipp Janda <siffie...@gmx.net> >> > wrote: >> >> >> >> For the record, I have successfully installed luajson-1.3.2-1 on Ubuntu >> >> 13.10 x86_64 a few minutes ago. >> >> >> > >> > That is good to know >> > >> > >> >> The error message from above comes from `luarocks/fetch.lua:126` and >> >> indicates that the actual unpacking of the .src.rock file fails for >> >> some >> >> reason. The last problem we had with unpacking was related to >> >> overwriting existing files. Could you find out what value `unpack_dir` >> >> has before the `fs.unzip()` call, and whether there already are files >> >> in >> >> that location? >> >> >> > >> > I added 2 print()'s and here is what I found >> > >> >> unpack_dir /tmp/luarocks_luajson-1.3.2-1-5452 >> >> rock_file >> >> >> >> /tmp/luarocks_luarocks-rock-luajson-1.3.2-1-4667/luajson-1.3.2-1.src.rock >> > >> >> The bad news is that this seems to be a new temporary directory, so my >> first guess was wrong. The good news is that I can now reproduce the >> problem here after installing LuaZip. So you probably have LuaZip >> installed as well (via apt maybe, the Ubuntu package is `lua-zip` or the >> old `liblua5.1-zip0`). >> >> I will look into it, but as a temporary measure you can try with LuaZip >> uninstalled (or removed/renamed) ... > > > This is exactly the issue. Thanks so much for finding it. > > Also how do I uninstall/remove luarocks when installed manually. I am not > saying I am going to to that, but it was not clear how. Plus the make file > does not contain a uninstall directive.
The details depend on Lua version and where you installed it to, but this should suffice: rm -rf /usr/local/bin/luarocks* /usr/local/share/lua/5.1/luarocks /usr/local/lib/luarocks I didn't add an uninstall directive to the Makefile because it's all too easy for it to do the wrong thing if the config flags don't match what was done at installation time. -- Hisham ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ Luarocks-developers mailing list Luarocks-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/luarocks-developers