On Sun, Nov 4, 2012 at 11:23 PM, Hisham <h...@hisham.hm> wrote:
> On Sun, Nov 4, 2012 at 11:32 PM,  <p...@pjb.com.au> wrote:
>> Hi :-)
>>
>> Way back on 24 Sep 2012, Doug Currie wrote:
>>> I was initially hoping the thread was going is: "How to maintain
>>> separate simultaneous deployment of Lua 5.1, 5.2, and LuaJIT 2." It would
>>> be really nice if LuaRocks knew how to build and install rocks for all
>>> three environments. I'm sure I don't know how to do it well manually,
>>> and there may or may not be an accepted standard way to do it.
>>
>> My situation is that I have
>>   box8 (debian) ~> /usr/bin/lua -v
>>   Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
>>   box8 (debian) ~> /usr/local/bin/lua -v
>>   Lua 5.2.1  Copyright (C) 1994-2012 Lua.org, PUC-Rio
>> and I'd like to install zee, which requires 5.2
>>
>>   luarocks install zee
>> fails with
>>   Missing dependencies for zee:
>>   lua == 5.2
>>   Error: Could not find a rock to satisfy dependency: lua == 5.2
>> even though /usr/local/bin is ahead of /usr/bin in my $PATH
>>
>> This feels like a dumb RTFM question, yet I can't see it in
>>   man luarocks
>> Is there some way to specify
>>   luarocks -l /usr/local/bin/lua install zee
>> or
>>   LUA=/usr/local/bin/lua ; luarocks install zee
>> or something like that ?
>
> luarocks detects the Lua version based on the interpreter it is
> actually using to run (which it takes from it #! line, generated at
> install time). So if you do
>    /usr/local/bin/lua luarocks install zee
> it will detect Lua 5.2.

It's probably also a good idea to make sure your local tree doesn't
mix installations of Lua 5.1 and 5.2 rocks. If you want to install 5.1
rocks to /usr and 5.2 rocks to /usr/local, you could do:

/usr/local/bin/lua luarocks install --tree=/usr/local zee

-- Hisham
http://hisham.hm/

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to