On 18 November 2013 14:33, Carsten Weise <realtimecars...@gmail.com> wrote:
> I wanted to set up a self-contained luarocks installation, in order to ship
> an application written in lua.
> I followed the instruction on
> http://luarocks.org/en/Installation_instructions_for_Windows, and the setup
> worked fine.
>
> However, on trying to install the first package, xavante, I get the
> following error:
>
> cl /MD /O2 -c -Fosrc/luasocket.obj -IC:/luasc/2.1/include src/luasocket.c
> -DLUAS
> OCKET_DEBUG -DNDEBUG -DLUASOCKET_API=__declspec(dllexport)
> -DMIME_API=__declspec
> (dllexport)
> Optimierender Microsoft (R) 32-Bit C/C++-Compiler, Version 12.00.8804, fuer
> x86
> Copyright (C) Microsoft Corp 1984-1998. Alle Rechte vorbehalten.
>
> luasocket.c
> src/wsocket.h(15) : error C2061: Syntaxfehler : Bezeichner
> 't_sockaddr_storage'
> src/wsocket.h(15) : error C2059: Syntaxfehler : ';'
>
> so it's reporting a syntax error in src/luasocket.c.
>
> However, on searching in my self-contained luarocks, there is no file
> luasocket.c. Looks to me as if there's something
> going wrong with selfcontainedness. Note that lfs installs fine, but
> luasocket gives the error.

Are you using Lua 5.1 or 5.2?

If using Lua 5.1, try this

   luarocks install luasocket 2.0.2

and let us know the results. Thank you.

-- Hisham

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&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