lua-users home
lua-l archive

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


Hi,

i'm having lot of problems installind luasocket some like it:

require("socket")
/usr/local/share/lua/compat-5.1.lua:171: package `socket.core' not found
stack traceback:
       [C]: in function `error'
       /usr/local/share/lua/compat-5.1.lua:171: in function
</usr/local/share/lua/compat-5.1.lua:162>
       /usr/local/share/lua/compat-5.1.lua:190: in function `require'
       /usr/local/share/lua/socket.lua:13: in main chunk
       /usr/local/share/lua/compat-5.1.lua:190: in function `require'
       stdin:1: in main chunk
       [C]: ?


and my enviromment vars:

declare -x LUA_CPATH="/usr/local/share/lua/?/?.so"
declare -x LUA_INIT="@/usr/local/share/lua/compat-5.1.lua"
declare -x LUA_PATH="/usr/local/share/lua/?.lua"

And where are the LuaSocket files?

Regards,
Diego.