lua-users home
lua-l archive

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


On Sun, 23 Jan 2011 09:24:32 -0200, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:

>That's weird. Are you sure test.lua is ok? Here are its first few lines:

./lua test.lua works OK on the appliance:

/var/tmp> ./lua random.test.lua
random library for Lua 5.1 / Nov 2010 / using Mersenne Twister

new     0.92961609281715        0.31637555458179 0.18391881167709
more    0.20456027855304        0.56772502908169 0.59554470297925
...

>Lua seems to be working fine. Try running test/hello.lua and test/bisect.lua,
>from the original tarball.

This works fine too:

/var/tmp> ./lua bisect.lua
0 c=1.5 a=1 b=2
1 c=1.25 a=1 b=1.5
...

... but I still can't load eg. LuaSocket :-/

============
/var/tmp> ls -al
-rw-r--r--    1 root     root          645 Jan 23 16:38 bisect.lua
-rwxr-xr-x    1 root     root       186942 Jan 23 16:33 lua
-rw-r--r--    1 root     root        36265 Jan 23 16:33 random.so
-rw-r--r--    1 root     root         1242 Jan 23 16:35
random.test.lua
-rw-r--r--    1 root     root        73422 Jan 23 16:40
socket.2.0.2.so
lrwxrwxrwx    1 root     root           15 Jan 23 16:41 socket.so ->
socket.2.0.2.so

/var/tmp> ./lua -lsocket
./lua: error loading module 'socket' from file './socket.so':
        Unable to resolve symbol
stack traceback:
        [C]: ?
        [C]: ?
        [C]: ?
============

Could it be that I'm using some wrong compiler/linker settings?

www.pastebin.com/heVDPk0K

Is there a way to get more information from Lua to find out why it can
load dummy.so or random.so but not standard modules like LuaSocket?

Thank you.