Am 17.04.2013 11:33 schröbte Philipp Janda:
>
> luarocks help
>
> gives
>
> Error: LuaRocks 2.0.13 bug (please report at
> [email protected]).
> ...rams/luarocks-2.0.13/share/lua/5.1/luarocks/help.lua:82: attempt to
> concatenate local 'home_file' (a nil value)
> stack traceback:
> ...rams/luarocks-2.0.13/share/lua/5.1/luarocks/help.lua:82: in function
> <...rams/luarocks-2.0.13/share/lua/5.1/luarocks/help.lua:42>
> (tail call): ?
> [C]: in function 'xpcall'
> ...ocks-2.0.13/share/lua/5.1//luarocks/command_line.lua:154: in
> function 'run_command'
> ...iffiejoe/.self/programs/luarocks-2.0.13/bin/luarocks:26: in main
> chunk
> [C]: ?
>
> on my PC-BSD virtual machine (and also on my Ubuntu 12.10 box).
>
I probably should also show my ./configure line, because this bug seems
to be caused by --force-config:
./configure --prefix=${HOME}/.self/programs/luarocks-2.0.13
--lua-version=5.2 --lua-suffix=5.2
--with-lua-include=/usr/include/lua5.2 --versioned-rocks-dir --force-config
(Ubuntu version)
`home_config_file` in cfg.lua, which later becomes `home_file` in
help.lua, only gets set if `site_config.LUAROCKS_FORCE_CONFIG` is false.
Changing help.lua:82 from
User configuration file: ]]..home_file .. " (" ..
get_status(home_ok) ..")\n")
to
User configuration file: ]]..tostring(home_file) .. " (" ..
get_status(home_ok) ..")\n")
fixes the problem (so far). But there will be a similar problem in
cfg.lua:267 on Windows:
home_config_file = home_config_file:gsub("\\","/")
-->
home_config_file = home_config_file and home_config_file:gsub("\\","/")
Philipp
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers