lua-users home
lua-l archive

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


I am seeing a problem when loading LuaSockets.

I have gotten LuaSockets to compile and moved all appropriate files to the directories /usr/local/share/lua/5.0 or /usr/local/lib/lua/5.0.  When I require socket I get the following 

error:require('socket')
error loading module 'socket.core' from file '/usr/local/lib/lua/5.0/socket/core.so':
dlopen(/usr/local/lib/lua/5.0/socket/core.so, 6): Symbol not found: _luaL_prepbuffer
  Referenced from: /usr/local/lib/lua/5.0/socket/core.so
  Expected in: dynamic lookup

stack traceback:
[C]: in ?
[C]: in function 'require'
/usr/local/share/lua/5.0/socket.lua:13: in main chunk
[C]: in function 'require'
stdin:1: in main chunk
[C]: in ?


I am not conversant with make and had to move the files manually.  The socket/core.so and mime/core.so confuse me,  the makefile leaves files called socket.so.2.0.2 and mime.so.1.0.2. I renamed these socket/core.so mime/core.so was this correct?  If somebody could explain how package parses something.something into something/something I would appreciate it.



Jose Torre-Bueno