[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Installed lua , luarocks and Nanoki - luasocket not found - newbie
- From: Petite Abeille <petite.abeille@...>
- Date: Wed, 1 Jul 2009 18:46:12 +0200
Hi Wim,
On Jul 1, 2009, at 6:07 PM, Wim Paulussen wrote:
When trying to launch Nanoki, I get the following 'lua:
./TCPServer.lua:15: module 'socket' not found: ....(more error
messages
about files not found) '
As far as I can see this means that socket.lua, although present,
cannot
be found by lua.
What's in your package.path?
E.g.:
% lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> print( package.path )
./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/
init.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua
socket.lua should be in one of the directories defined in
package.path... alternatively... copy all the *.lua files in the same
directory and run everything from there, e.g.:
% cp *.lua Nanoki
% cd Nanoki
% lua Nanoki.lua . 0 1080
2009-07-01 16:45:32 Version Nanoki/1.13
2009-07-01 16:45:32 Location .
2009-07-01 16:45:32 Server tcp 0 1080
2009-07-01 16:45:32 Forwarded false
2009-07-01 16:45:32 Secure false
HTH.
Cheers,
PA.