On Wed, Mar 16, 2011 at 6:09 PM, Benoit Germain <[email protected]> wrote:
> Hello,
>
> I have a PC with a fresh Windows 7 installation. I've dowloaded
> luarocks-2.0.4.1-win32, unzipped it, opened a cmd shell, and run
>
> install /P c:\SDK\LuaRocks
>
> I've then added manually the environment variable
> LUAROCKS_ROOT = C:\SDK\LuaRocks\2.0\
>
> and changed my path by adding %LUAROCKS_ROOT% at the end.
>
> I closed the cmd shell and launched another one to get a refreshed
> environment, then typed
>
> luarocks install luasocket
>
> which yielded:
>
> Error: LuaRocks 2.0.4.1 bug (please report at
> [email protected]).
> c:\SDK\LuaRocks\2.0\lua\luarocks\fetch.lua:35: attempt to concatenate local
> 'err' (a nil value)
> stack traceback:
>         c:\SDK\LuaRocks\2.0\lua\luarocks\fetch.lua:35: in function
> 'fetch_url'
>         c:\SDK\LuaRocks\2.0\lua\luarocks\fetch.lua:70: in function
> 'fetch_url_at_temp_dir'
>         c:\SDK\LuaRocks\2.0\lua\luarocks\manif.lua:95: in function
> 'load_manifest'
>         c:\SDK\LuaRocks\2.0\lua\luarocks\search.lua:175: in function
> 'manifest_search'
>         c:\SDK\LuaRocks\2.0\lua\luarocks\search.lua:204: in function
> 'search_repos'
>         c:\SDK\LuaRocks\2.0\lua\luarocks\search.lua:268: in function
> 'find_suitable_rock'
>         c:\SDK\LuaRocks\2.0\lua\luarocks\install.lua:121: in function
> <c:\SDK\LuaRocks\2.0\lua\luarocks\install.lua:105>
>         (tail call): ?
>         [C]: in function 'xpcall'
>         c:\SDK\LuaRocks\2.0\lua\luarocks\command_line.lua:143: in function
> 'run_command'
>         c:\SDK\LuaRocks\2.0\luarocks.lua:22: in main chunk
>         [C]: ?
>
> I've tried also with lanes and luafilesystem, to the same effect.
> So here I am :-). Is there something I missed?

With regard to this error, it looks like the win32 code in LuaRocks
lacked support for curl (and on top of that, the fetch function had a
bug in the error handler). I committed a tweak that should fix this.

-- Hisham

_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to