On 26 February 2014 12:08, RJP Computing <rjpcomput...@gmail.com> wrote:
> On Wed, Feb 26, 2014 at 4:03 AM, Thijs Schreijer <th...@thijsschreijer.nl>
> wrote:
>>
>> Like Hisham mentioned, `--verbose` is _really_ verbose (it spits out all
>> underlying shell commands used including the results), the output here is
>> far too little for that option. I don't know whether older versions of LR
>> choke on unknown options, but seems to me you're still running an older
>> version.
>>
>> Maybe try `sudo luarocks install luarocks` to have luarocks update itself.
>> And then try again.
>
>
> So here is what I get when running "luarocks help"
>>
>> $ luarocks help
>> LuaRocks 2.1.2, a module deployment system for Lua
>> NAME
>> /usr/local/bin/luarocks - LuaRocks main command-line interface
>> SYNOPSIS
>> /usr/local/bin/luarocks [--from=<server> | --only-from=<server>]
>> [--to=<tree>] [VAR=VALUE]... <command> [<argument>]
>> ...
>> CONFIGURATION
>> Lua version: 5.1
>> Configuration files:
>> System: /usr/local/etc/luarocks/config-5.1.lua (ok)
>> User  : /home/user/.luarocks/config.lua (not found)
>> Rocks trees in use:
>> /home/user/.luarocks ("user")
>> /usr/local ("system")
>
>
> Here is "sudo luarocks --verbose install luajson"
>>
>> $ sudo luarocks --verbose install luajson
>> Installing
>> http://www.luarocks.org/repositories/rocks/luajson-1.3.2-1.src.rock...
>> Using
>> http://www.luarocks.org/repositories/rocks/luajson-1.3.2-1.src.rock...
>> switching to 'build' mode
>> Error: Failed unpacking rock file:
>> /tmp/luarocks_luarocks-rock-luajson-1.3.2-1-3226/luajson-1.3.2-1.src.rock
>
>
> Just to see how it works on a working rock here is an install of
> luafilesystem
>>
>> $ sudo luarocks --verbose install luafilesystem
>> Installing
>> http://www.luarocks.org/repositories/rocks/luafilesystem-1.6.2-2.src.rock...
>> Using
>> http://www.luarocks.org/repositories/rocks/luafilesystem-1.6.2-2.src.rock...
>> switching to 'build' mode
>> os.execute: gunzip -c luafilesystem-1.6.2.tar.gz|tar -xf -
>> Results: 1
>>   1 (number): 0
>> gcc -O2 -fPIC -I/usr/include/lua5.1 -c src/lfs.c -o src/lfs.o
>> os.execute: gcc -O2 -fPIC '-I/usr/include/lua5.1' '-c' 'src/lfs.c' '-o'
>> 'src/lfs.o'
>> Results: 1
>>   1 (number): 0
>> gcc -shared -o lfs.so -L/usr/lib src/lfs.o
>> os.execute: gcc -shared '-o' 'lfs.so' '-L/usr/lib' 'src/lfs.o'
>> Results: 1
>>   1 (number): 0
>> Updating manifest for /usr/local/lib/luarocks/rocks
>> luafilesystem 1.6.2-2 is now built and installed in /usr/local (license:
>> MIT/X11)
>
>
> So I tried this on Ubuntu 12.04 and it worked.
>>
>> $ sudo luarocks --verbose install luajson
>>
>> Installing
>> http://luarocks.org/repositories/rocks/luajson-1.3.2-1.src.rock...
>> Using http://luarocks.org/repositories/rocks/luajson-1.3.2-1.src.rock...
>> switching to 'build' mode
>> Archive:
>> /tmp/luarocks_luarocks-rock-luajson-1.3.2-1-1593/luajson-1.3.2-1.src.rock
>>   inflating: luajson-1.3.2-1.rockspec
>>   inflating: luajson/README
>>   ...
>>   inflating: luajson/lua/json/util.lua
>>   inflating: luajson/lua/json/decode.lua
>>   inflating: luajson/lua/json/encode.lua
>> Do not use 'module' as a build type. Use 'builtin' instead.
>> Updating manifest for /usr/local/lib/luarocks/rocks
>> luajson 1.3.2-1 is now built and installed in /usr/local/ (license:
>> MIT/X11)
>
>
> All my issues have been in Ubuntu 13.10 x64. Does any of this make sense? I
> have installed this package many, many times and it has worked. I have no
> idea what is going on.

Could you send a list of rocks you have installed in that box? I.e.,
the output of `luarocks list`. If --verbose is not generating output,
then everything is happening through internal luarocks.fs operations
and not shell commands...

-- 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

Reply via email to