lua-users home
lua-l archive

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


On Mon, 06 Jan 2014 16:26:51 +0100, Gilles Ganault
<gilles.ganault@free.fr> wrote:
>What is the solution? Downloading the SQLite3 source code into a
>temporary directory, and tell LuaRocks where to find the SQLite3
>source code?

FWIW, it doesn't solve the problem:

# ll /tmp/sqlite3/sqlite-amalgamation-3080200

-rw-r--r-- 1 root root  111311 Dec  6 22:05 shell.c
-rw-r--r-- 1 root root 5143688 Dec  6 22:05 sqlite3.c
-rw-r--r-- 1 root root   26110 Dec  6 22:05 sqlite3ext.h
-rw-r--r-- 1 root root  353468 Dec  6 22:05 sqlite3.h

# luarocks install lsqlite3
SQLITE_DIR=/tmp/sqlite3/sqlite-amalgamation-3080200

Installing
http://luarocks.org/repositories/rocks/lsqlite3-0.9.1-2.src.rock...
Using
http://luarocks.org/repositories/rocks/lsqlite3-0.9.1-2.src.rock...
switching to 'build' mode
Archive:
/tmp/luarocks_luarocks-rock-lsqlite3-0.9.1-2-8181/lsqlite3-0.9.1-2.src.rock
  inflating: lsqlite3-0.9.1-2.rockspec
 extracting: lsqlite3_fsl09t.zip

Error: Could not find expected file sqlite3.h for SQLITE -- you may
have to install SQLITE in your system and/or pass SQLITE_DIR or
SQLITE_INCDIR to the luarocks command. Example: luarocks install
lsqlite3 SQLITE_DIR=/usr/local