lua-users home
lua-l archive

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


Hi Diego,

Thanks for pointing this out, you are quite right.  I think this goes some way towards solving the problem, but I still get:

>>>>
Lua 5.1  Copyright (C) 1994-2006 Lua.org, PUC-Rio
> require("socket")
/usr/local/share/lua/5.1/socket.lua:13: module 'socket.core' not found:
    no field package.preload['socket.core']
    no file '/usr/local/share/lua/5.1/socket/core.lua'
    no file '/usr/local/share/lua/5.0/socket/core.lua'
    no file 'socket/core.lua'
    no file '/usr/local/lib/lua/5.1/socket/core.so'
    no file '/usr/local/lib/lua/5.1/socket/core.lua'
    no file '/usr/local/lib/lua/5.0/socket/core.so'
    no file '/usr/local/lib/lua/5.0/socket/core.lua'
    no file 'socket/core.so'
    no file '*.lua'
    no file '/usr/local/lib/lua/5.1/socket.so'
    no file '/usr/local/lib/lua/5.1/socket.lua'
    no file '/usr/local/lib/lua/5.0/socket.so'
    no file '/usr/local/lib/lua/5.0/socket.lua'
    no file 'socket.so'
    no file '*.lua'
<<<<

It looks as if core.so is in the wrong place:
>>>>
andy@jenna:~$ find /usr/local -iname "*core*"
/usr/local/lib/lua/5.0/mime/core.so
andy@jenna:~$
<<<<

In other words I don't +have+ a file socket/core.so.

Andy.

On 8/7/06, Diego Nehab <diego@tecgraf.puc-rio.br> wrote:
Hi,

> LUA_CPATH=/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.0/?.lua;?.lua

Shouldn't these be .so or .dll?

[]s,
Diego.


--
It's Like This

Even the Samurai
Have teddy bears
And even the teddy bears
Get drunk