On 6 Mar 2012, at 16.07 , Hisham wrote:

> On Tue, Mar 6, 2012 at 11:28 AM, Betim Sadiku <[email protected]> wrote:
>> hello,
>> 
>> i tried to install luasockt with the following command:
>> 
>> luarocks install luasocket
>> 
>> but the process ended with a build error:
>> 
>> the command "msbuild" is either misspelled or couldn't find
>> 
>> 
>> please suggest me what to do
>> 
> 
> Looks like you're trying to install it from Windows and you don't have
> a C compiler environment set up. My suggestion is to use the latest
> binary package that was provided. Try this:
> 
> luarocks install
> http://luarocks.org/repositories/rocks/luasec-0.4-2.win32-x86.rock
> 
> Alternatively, you can give Lua For Windows a try:
> https://code.google.com/p/luaforwindows/
> It includes a number of pre-built packages for Windows, including
> LuaSocket and LuaRocks.
> 
> -- Hisham
> http://hisham.hm/

When working on Windows I always used the Microsoft / Windows Platform SDK. 
This apparently does not include "msbuild" because it never worked for me (as 
in I simply don't have the executable) and as expected I could not install 
LuaSocket using LuaRocks last time I tried. When I created my Lua buildbot 
project I even included a custom batch script to compile LuaSocket without 
using "msbuild" [2]. Is there any reason why a similar approach could not work 
for LuaRocks? It seems to me like this will be more portable than using 
"msbuild" (as is currently done).

 - Peter

[1] 
https://github.com/xolox/lua-buildbot/blob/f19ea404a0348c06c12c191bb4dd9c8e177ca654/buildbot.lua#L501
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to