[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: undefined symbol: luaL_checknumber in lua socket library
- From: Edwin Eyan Moragas <haaktu@...>
- Date: Mon, 14 Mar 2005 17:49:48 +0800
Hi all,
trying to get the luasocket library working under linux.
here's a snippet of .bash_profile:
# start snip
# for luasocket to work
LUA_ROOT=/usr/local/lib
LUA_INIT="@$LUA_ROOT/compat-5.1.lua"
LUA_PATH="$LUA_ROOT/?.lua;?.lua"
LUA_CPATH="$LUA_ROOT/?.so;?.so"
export LUA_PATH LUA_INIT LUA_CPATH
# end snip
when trying to load the library using require, i get this error:
-- error start
eyan@tanis:$ lua
Lua 5.0.2 Copyright (C) 1994-2004 Tecgraf, PUC-Rio
> require("socket")
/usr/local/lib/compat-5.1.lua:66: /usr/local/lib/lsocket.so: undefined
symbol: luaL_checknumber
stack traceback:
[C]: in function `assert'
/usr/local/lib/compat-5.1.lua:66: in function `require'
/usr/local/lib/socket.lua:13: in function `f'
/usr/local/lib/compat-5.1.lua:77: in function `require'
stdin:1: in main chunk
[C]: ?
-- error end
my config file for compiling lua is very standard. i just uncommented
the two loadable library switches:
LOADLIB= -DUSE_DLOPEN=1
DLLIB= -ldl
that's it. been going in circles to figure this out.
--
kind regards,
eyan
http://www.eyan.org