lua-users home
lua-l archive

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


Hello all,

After some effort, I could compile Luarocks with the following commandlines:

$ ./configure --with-lua-include=./include
$ sudo make bootstrap

The directory ./include was manually placed in the Luarocks master directory.

So I try to install luasql-sqlite3:

$ sudo luarocks install luasql-sqlite3

I got the following error:

src/luasql.c:8:17: fatal error: lua.h: Arquivo ou diretório não encontrado
 #include "lua.h"
                 ^
compilation terminated.

Error: Build error: Failed compiling object src/luasql.o

The meaning of the error is understandable. When Luarocks compiles the
sources, it calls GCC and it requires the path of include directory.

But how to explain to luarocks where is it?


I am using Lua 5.2.

Best regards,
-- 
Luciano de Souza