lua-users home
lua-l archive

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

On 6 Apr 2019, at 17:50, Aditya Mahajan <> wrote:


I am trying to install lcomplex on Lua 5.3 using

 $luarocks install lcomplex --local

which gives


gcc -O2 -fPIC -I/usr/include -c lcomplex.c -o lcomplex.o
lcomplex.c: In function ‘luaopen_complex’:
lcomplex.c:155:2: warning: implicit declaration of function ‘luaL_register’; did you mean ‘lua_register’? [-Wimplicit-function-declaration]
gcc -shared -o lcomplex.o
lcomplex 20120430-1 is now installed in /home/adityam/.luarocks (license: MIT/X11)

It was deprecated, see
Since it was marked as deprecated in 5.2, it was probably deleted from 5.3.

It might be that the source was updated, but no new LuaRock was published. So you could try to download the source

Then either build that, or take the existing .rockspec file and copy it into the source directory. Then from the source directory do `luarocks make`. Might just work.