lua-users home
lua-l archive

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

On Mon, Jun 13, 2011 at 4:54 PM, Javier Guerra Giraldez
<> wrote:
> On Mon, Jun 13, 2011 at 10:00 AM, Jim Whitehead II <> wrote:
>> This lua/luarocks installation should be shielded from
>> anything that exists globally.
> very nice, i'll definitely try this.
> but still doesn't help to get a LuaRocks-installed package to work
> just like a manually-installed one....

Why not? Luarocks-2.x drops the files directly into the same place
where they'd be manually installed. If that doesn't work it would be a
bug and nothing else. For example:

$ mkdir /tmp/foo
$ cd /tmp/foo
$ wget
$ sh
$ ./sandbox/bin/luarocks install luasocket
$ ./sandbox/bin/lua -lsocket -e 'print(socket.gettime())'

Works brilliantly!

- Jim