lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Jun 13, 2011 at 3:26 PM, Javier Guerra Giraldez
<javier@guerrag.com> wrote:
> On Mon, Jun 13, 2011 at 6:47 AM, Reuben Thomas <rrt@sc3d.org> wrote:
>> LuaRocks is ideal then: either its self-contained (for truly portable
>> deployment) or per-user (for software that can be "fitted in" to a
>> hierarchy) could be used.
>
> i've heard this (or similar) before; but still i haven't managed to do
> a 'clean' install of anything that's LuaRocks dependent.
>
> by clean i mean without _any_ LUA_PATH messing, dropping the packages
> where i could find it with plain Lua.
>
> for me, some help in the install process is a slight positive; but
> even the slightest modification of runtime is a big deterrent.
>
> can LuaRocks do such a clean install?  if so, how?

I routinely use the following script [1] (or a derivative) to give me
a fully sandboxed version of lua and luarocks that I can use for an
application. This lua/luarocks installation should be shielded from
anything that exists globally. That's how I get a clean install.

- Jim

[1]: http://snipt.net/jnwhiteh/install-lua-and-luarocks-into-a-sandboxed-directory/