I have obtained the sqlite source code with:
sudo apt-get install fossil
mkdir sqlite
cd sqlite
fossil clone http://www.sqlite.org/cgi/src/doc/trunk a
fossil open a
rm a
and compiled it with the instructions on the README. Now I want to run make test.
The README says that that requires Tcl development files. On Ubuntu 14.04 I run:
sudo apt-get install tcl8.6-dev
Then if I make test it gave tcl.h not found
So I located tcl.h and run:
CPATH="$CPATH:/usr/include/tcl8.6" make test
But now it gives:
/tmp/cc4jwHgX.o: In function `dbFreeStmt':
/home/ciro/git/sqlite/./src/tclsqlite.c:451: undefined reference to `Tcl_Free'
/tmp/cc4jwHgX.o: In function `closeIncrblobChannels':
/home/ciro/git/sqlite/./src/tclsqlite.c:189: undefined reference to `Tcl_UnregisterChann
...
I have tried:
cd /usr/lib/x86_64-linux-gnu
sudo ln -s libtcl8.6.so libtcl.so
with not success.
testtarget. BTW why do you need to build sqlite from source at all?make testexists since it runs (and fails), and since the README says it exists. I'm compiling it to learn database internals.tcl-devmeta package instead of the specifictcl8.6-devversion package - it appears to include a/usr/lib/tcl-Config.shscript that sources a suitable Tcl build environment. I was able tomakeandmake testwithout modifying anything.tcl/tcl.hto work. The.sois now there, but I get the same link errors as before :(