> -----Original Message-----
> From: Alexey Melnichuk [mailto:mi...@newmail.ru]
> Sent: woensdag 2 oktober 2013 13:12
> To: luarocks-developers@lists.sourceforge.net
> Subject: Re: [Luarocks-developers] Help please!
> 
> John Hind <john.hind@...> writes:
> 
> >
> > I'm still having trouble getting up and running on luarocks. I'd be
> grateful
> > if an expert could have a look at my repository at:
> >
> > https://github.com/JohnHind/Lua_Bitfield/
> >
> > and advise if the rockspec looks OK.
> >
> > When I try this version on my Windows 8 (64 bit) computer, it complains
> > about 'git' not being recognised as a command.
> 
> This is why i prefer use HTTP+zip instead of git.
> Luarocks does not contain git so if you want use git you have to install
> it
> manually.
> Or you can use zip:
>   source = {
>      url = "https://github.com/JohnHind/Lua_Bitfield/archive/master.zip";,
>      dir = "Lua_Bitfield-master",
>   }
> For specific version i create tag like `v0.1.2`
> And in rockspec i use
>   source = {
>     url = "https://github.com/moteus/lua-odbc/archive/v0.2.0.zip";,
>     dir = "lua-odbc-0.2.0",
>   }
> 

For an SCM rockspec I think the whole purpose is to get the latest master, so 
you can't get around using git

LuaRocks installs a batch file which is used as the main os command; 
luarocks.bat (and also luarocks-admin.bat)
Edit the batch file, you'll see a temporary extension of the PATH variable, 
only local to this batch file.
In my case;
   SET PATH=c:\users\public\lua\LuaRocks\2.1\;%PATH%
Edit that line to include the path to git and other tools (I have MinGW in my 
path already).
That should resolve your issue without interfering with other 
applications/tools.

Maybe adding those paths as parameters to the luarocks configuration would be a 
good idea (might even be available already, in that case I just don't know them)


> PS. I think this is good practice to define top supported lua version:
>   dependencies = {
>     "lua >= 5.1, < 5.3",
>   }

It sure is!

Thijs


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&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