Package: luarocks
Version: 2.0.2-1
Severity: normal

Installing luarocks fails with the following (appended after message)
output.  Trying to run the (half-installed) luarocks fails similarly.

The reason appears to be that luarocks only works with Lua 5.1, and is
running the system default Lua interpreter -- but the default Lua on
my system is 5.2:

   $ update-alternatives --display lua-interpreter
   lua-interpreter - auto mode
     link currently points to /usr/bin/lua5.2
   /usr/bin/lua5.1 - priority 110
     slave lua-manual: /usr/share/man/man1/lua5.1.1.gz
   /usr/bin/lua5.2 - priority 120
     slave lua-manual: /usr/share/man/man1/lua5.2.1.gz
   Current 'best' version is '/usr/bin/lua5.2'.

I suppose it could be fixed by having luarocks explicitly invoke
"/usr/bin/lua5.1" instead of /usr/bin/lua...

Thanks,
-miles

*** begin failure output ***
Unpacking luarocks (from .../luarocks_2.0.2-1_all.deb) ...
Processing triggers for man-db ...
Setting up luarocks (2.0.2-1) ...
/usr/bin/lua: /usr/share/lua/5.1//luarocks/persist.lua:24: attempt to call 
global 'setfenv' (a nil value)
stack traceback:
/usr/share/lua/5.1//luarocks/persist.lua:24: in function 'load_into_table'
/usr/share/lua/5.1//luarocks/cfg.lua:102: in main chunk
        [C]: in function 'require'
        /usr/share/lua/5.1//luarocks/command_line.lua:6: in main chunk
        [C]: in function 'require'
        /usr/bin/luarocks-admin:4: in main chunk
        [C]: in ?
dpkg: error processing luarocks (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 luarocks
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up luarocks (2.0.2-1) ...
/usr/bin/lua: /usr/share/lua/5.1//luarocks/persist.lua:24: attempt to call 
global 'setfenv' (a nil value)
stack traceback:
        /usr/share/lua/5.1//luarocks/persist.lua:24: in function 
'load_into_table'
        /usr/share/lua/5.1//luarocks/cfg.lua:102: in main chunk
        [C]: in function 'require'
        /usr/share/lua/5.1//luarocks/command_line.lua:6: in main chunk
        [C]: in function 'require'
        /usr/bin/luarocks-admin:4: in main chunk
        [C]: in ?
dpkg: error processing luarocks (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 luarocks
*** end failure output ***


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.utf8, LC_CTYPE=ja_JP.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages luarocks depends on:
ii  liblua5.1-0-dev [liblua5.1-dev]  5.1.4-10
ii  lua5.1                           5.1.4-10
ii  wget                             1.13.4-1
ii  zip                              3.0-4   

luarocks recommends no packages.

luarocks suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to