Ok, I finally understood that wget is missing. For some reason, there is no
wget bundled in luarocks (although it seems that there have been at some
point in the past). I see a curl.exe, but it fails with a popup about some
error 0xc000007b when I try to run it. Anyway. I got my hand on mingw msys'
wget and its openssl sidekick, added my mingw/msys/1.0/bin directory in the
path, and tried again.

Lo an behold, now the rock is properly fetched and un compressed, but when
the time comes to build it I have:

C:\Users\Parents\AppData\Local\Temp\luarocks_lanes-2.1-1-8240\lanes>goto
ERR_NOLUA
***
*** Please set LUA51 to point to either LuaBinaries or
*** Lua for Windows directory.
***
*** http://luabinaries.luaforge.net/download.html
***     lua5_1_2_Win32_dll8_lib
***     lua5_1_2_Win32_bin
***
*** http://luaforge.net/frs/?group_id=377
'release_id' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
***

cp: lua51-lanes.dll: No such file or directory

Error: Failed copying lua51-lanes.dll

What's this about "Please set LUA51 to point to either LuaBinaries or Lua
for Windows directory."? Isn't it what luarocks' INSTALL.BAT script is
supposed to do? I had no Lua binaries installed on the PC before I installed
LuaRocks, since the doc says that in this case LuaRocks configures itself to
use the bundled lua binaries...
But looking at the generated config.lua, there is no lua_interpreter entry
in there (that, BTW, Windows installation speaks about, but isn't mentioned
in the config file format reference). I add it nonetheless, but the result
is the same. So I manually created the LU51 environment variable, and then
eventually succeeded to install a rock. phew :-)





2011/3/16 Benoit Germain <[email protected]>

> 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?
>
>
> Regards,
>
> --
> Benoit.
>



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

Reply via email to