[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] hererocks 0.10.0 - Lua/LuaRocks installation script
- From: Peter Melnichenko <mpeterval@...>
- Date: Fri, 15 Jul 2016 17:56:56 +0300
On Fri, Jul 15, 2016 at 5:21 PM, Javier Guerra Giraldez
<javier@guerrag.com> wrote:
> nice. Can I specify LUA_PATH and LUA_CPATH, instead of having to live
> with the tree sturcture? I don't mind if it needs it for compiling,
> or bookkeeping; I just want to get the final scripts/libs on
> easy-to-actually-use directories.
Why does it matter where libs go as long as they are in
package.path/package.cpath?
> now, i haven't checked every environment manager out there, so maybe
> somebody has done this already? The main point is: don't use, modify,
> depend, or care about, some "system" or "user" environment, just a
> "project"
You can create an environment for each project, and for each Lua
version if you want to.
> mkdir myproj; cd myproj
> hererocks .lua53 -l5.3 -rlatest
> source .lua53/bin/activate
> luarocks install ...
(Generally you can't reuse modules for different Lua versions because
of C modules).
-- Peter