lua-users home
lua-l archive

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

On Sat, Jan 5, 2013 at 12:48 PM, Thijs Schreijer
<> wrote:
>   local socket = require("luasocket")

That would be require("socket")

> And see what happens. Probably good to have a look at the paths as well; package.path and package.cpath to see where you should put your libraries.

Precisely. Look at how a system install of LuaSocket is arranged, and
make it locally available.

It's a very powerful thing, being able to set package.path to anything
you want, because it gives you total control of require() in an