lua-users home
lua-l archive

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


Hi,

I'm facing following error when trying to use LuaPosix w/ 5.1 :

lua dir.lua
lua: error loading module 'posix_c' from file
'/usr/lib64/lua/luarocks/lib/lua/5.1/posix_c.so':
    /usr/lib64/lua/luarocks/lib/lua/5.1/posix_c.so: undefined symbol:
lua_tointegerx
stack traceback:
    [C]: ?
    [C]: in function 'require'
    /usr/lib64/lua/luarocks/share/lua/5.1/posix.lua:2: in main chunk
    [C]: in function 'require'
    dir.lua:1: in main chunk
    [C]: ?

I found several pages on the web but all regarding lua_tointeger
(without 'x'). One of them tell it's probably because the library hasn't
been linked against liblua
(http://web.archiveorange.com/archive/v/Fh9mPAiX2yWziICEhHy4) and it's
true I don't see it at compilation time :

make[1] : on entre dans le répertoire «
/tmp/luarocks_luaposix-5.1.26-1-3611/luaposix »
  CC     posix_c_la-lposix.lo
  CCLD   posix_c.la
  CC     lcurses.lo
  CCLD   curses_c.la
make[1] : on quitte le répertoire «
/tmp/luarocks_luaposix-5.1.26-1-3611/luaposix »
make install
make[1] : on entre dans le répertoire «
/tmp/luarocks_luaposix-5.1.26-1-3611/luaposix »
 /bin/mkdir -p
'/usr/lib64/lua/luarocks/lib/luarocks/rocks/luaposix/5.1.26-1/lib'
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   posix_c.la
curses_c.la
'/usr/lib64/lua/luarocks/lib/luarocks/rocks/luaposix/5.1.26-1/lib'
libtool: install: /usr/bin/install -c .libs/posix_c.so
/usr/lib64/lua/luarocks/lib/luarocks/rocks/luaposix/5.1.26-1/lib/posix_c.so
libtool: install: /usr/bin/install -c .libs/posix_c.lai
/usr/lib64/lua/luarocks/lib/luarocks/rocks/luaposix/5.1.26-1/lib/posix_c.la
libtool: install: /usr/bin/install -c .libs/curses_c.so
/usr/lib64/lua/luarocks/lib/luarocks/rocks/luaposix/5.1.26-1/lib/curses_c.so
libtool: install: /usr/bin/install -c .libs/curses_c.lai
/usr/lib64/lua/luarocks/lib/luarocks/rocks/luaposix/5.1.26-1/lib/curses_c.la
libtool: finish: PATH="/sbin:/bin:/usr/sbin:/usr/bin:/sbin" ldconfig -n
/usr/lib64/lua/luarocks/lib/luarocks/rocks/luaposix/5.1.26-1/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib64/lua/luarocks/lib/luarocks/rocks/luaposix/5.1.26-1/lib

Any clue ?

Thanks