luasockets modeule will not load for me
Posted: 01.04.2009, 19:05
A few months back I had tried unsuccessfully to get luasockets-2.0.2 to work in Celestia 1.5.1
from with ScriptedOrbits. Chris suggested not doing this and using hooks instead.
My problem then was an undefined symbol (lua_getmetatable) during the require ("socket") statement.
I've now returned to this problem and the hooks work great. but when I try to bring
in sockets.. I still get problems - and I've tried a dozen ways to fix it:
Error: error loading module 'socket' from file 'socket.so':
socket.so: cannot open shared object file: No such file or directory
Segmentation fault
Assuming that it was looking for core.so, I softlinked socket.so to core.so and
got my favorite message all over again:
Error: error loading module 'socket' from file '/usr/local/smallsat/luasocket/socket.so':
/usr/local/smallsat/luasocket/socket.so: undefined symbol: lua_getmetatable
How does everyone else define their LUA_PATH & LUA_CPATH vars?
Do you put lua and luasockets in competely separate dirs, or on top of each other?
-- "extremely frustrated" Save me!
from with ScriptedOrbits. Chris suggested not doing this and using hooks instead.
My problem then was an undefined symbol (lua_getmetatable) during the require ("socket") statement.
I've now returned to this problem and the hooks work great. but when I try to bring
in sockets.. I still get problems - and I've tried a dozen ways to fix it:
Error: error loading module 'socket' from file 'socket.so':
socket.so: cannot open shared object file: No such file or directory
Segmentation fault
Assuming that it was looking for core.so, I softlinked socket.so to core.so and
got my favorite message all over again:
Error: error loading module 'socket' from file '/usr/local/smallsat/luasocket/socket.so':
/usr/local/smallsat/luasocket/socket.so: undefined symbol: lua_getmetatable
How does everyone else define their LUA_PATH & LUA_CPATH vars?
Do you put lua and luasockets in competely separate dirs, or on top of each other?
-- "extremely frustrated" Save me!