lua-users home
lua-l archive

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


The error message from require() gives you a clue; those are the paths
which Lua is looking for a particular .so,  lua51-lanes.so. Copy that file
to one of those paths (like /usr/local/lib/lua/5.1/) and things should
work.

steve d.

On Mon, May 19, 2008 at 2:03 PM, Pete Kay <petedao@gmail.com> wrote:
> Hi,
>
> I am trying to install Lua Lanes on Debian.  Since Debian does not have Lua
> Lanes package, I have no choice but to install it from source code.  The
> make process finally run after I modified the Makefile, but Lanes is still
> not installed.  Could someone please help me out?
>
> ser:/usr/src/lanes-20070519# make
> mkdir -p out/linux-i686
> touch out/linux-i686/here
>
> ** Lua 5.1 native module (out/linux-i686/lua51-lanes.so): Linuxi686 **
> gcc -llua -fPIC -shared -D_GNU_SOURCE -lpthread -L/usr/src/lua-5.1.3/src
> -I/usr/src/lua-5.1.3/src -Wall -O2 -o out/linux-i686/lua51-lanes.so
> -DGLUA_LUA51 gluax.c lanes.c
> gluax.c: In function '_glua_register2':
> gluax.c:4517: warning: the address of 'last_etag' will always evaluate as
> 'true'
> gluax.c:4526: warning: the address of 'last_etag' will always evaluate as
> 'true'
>
> ** GluaX module (out/linux-i686/luax-lanes.so): Linuxi686 **
> gcc -fPIC -shared -D_GNU_SOURCE -lpthread -L/usr/src/lua-5.1.3/src
> -I/usr/src/lua-5.1.3/src -Wall -O2 -o out/linux-i686/luax-lanes.so gluax.c
> lanes.c
> gluax.c: In function '_glua_register2':
> gluax.c:4517: warning: the address of 'last_etag' will always evaluate as
> 'true'
> gluax.c:4526: warning: the address of 'last_etag' will always evaluate as
> 'true'
> ser:/usr/src/lanes-20070519#
> ser:/usr/src/lanes-20070519# lua test.lua
> lua: ./lanes.lua:67: module 'lua51-lanes' not found:
>     no field package.preload['lua51-lanes']
>     no file './lua51-lanes.lua'
>     no file '/usr/local/share/lua/5.1/lua51-lanes.lua'
>     no file '/usr/local/share/lua/5.1/lua51-lanes/init.lua'
>     no file '/usr/local/lib/lua/5.1/lua51-lanes.lua'
>     no file '/usr/local/lib/lua/5.1/lua51-lanes/init.lua'
>     no file '/usr/share/lua/5.1/lua51-lanes.lua'
>     no file '/usr/share/lua/5.1/lua51-lanes/init.lua'
>     no file './lua51-lanes.so'
>     no file '/usr/local/lib/lua/5.1/lua51-lanes.so'
>     no file '/usr/lib/lua/5.1/lua51-lanes.so'
>     no file '/usr/local/lib/lua/5.1/loadall.so'
> stack traceback:
>     [C]: in function 'require'
>     ./lanes.lua:67: in main chunk
>     [C]: in function 'require'
>     test.lua:10: in main chunk
>     [C]: ?
> ser:/usr/src/lanes-20070519#
>
>
> Thank you in advance for all your help.
>
> Pete
>