lua-users home
lua-l archive

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

Report on first installalation/testing attempt:

    $ luarocks make numlua-0.3-1.rockspec

So far so good: I can see  Now the installation.

5.1  $ sudo mkdir /usr/local/lua/5.1/numlua
     $ sudo cp *.lua /usr/local/lua/5.1/numlua

5.2  $ sudo mkdir /usr/local/lua/5.2/numlua
     $ sudo cp /usr/local/lua/5.2
     $ sudo cp *.lua /usr/local/lua/5.2/numlua

And now try to use it.

$ lua5.1
Lua 5.1.4  Copyright (C) 1994-2008, PUC-Rio
> require "numlua"
> require "numlua.seeall"
/usr/local/lib/lua/5.1/numlua/seeall.lua:14: bad argument #1 to 'pairs' (table expected, got nil)
stack traceback:
    [C]: in function 'pairs'
    /usr/local/lib/lua/5.1/numlua/seeall.lua:14: in main chunk
    [C]: in function 'require'
    stdin:1: in main chunk
    [C]: ?

$ lua5.2
Lua 5.2.0 (beta)  Copyright (C) 1994-2011, PUC-Rio
> require "numlua"
error loading module 'numlua' from file '/usr/local/lib/lua/5.2/':
    /usr/local/lib/lua/5.2/ undefined symbol: lua_call
stack traceback:
    [C]: in ?
    [C]: in function 'require'
    stdin:1: in main chunk
    [C]: in ?

It's part 21:00 local time, I'm packing it in for today.