lua-users home
lua-l archive

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


Hi,

i'm a newbie in Lua and i try to execute from a C program a lua code using
luasocket.

------------------- socket.lua ---------------------------------------
local socket = require("socket")
---------------------------------------------------------
$ export LUA_PATH="/usr/share/lua50/?.lua;?.lua"
$ lua socket.lua

I guess require will try to load your socket.lua. This is the file it looks for to load LuaSocket. :) Can you try a different name for your
test file?

Regards,
Diego.