下载非Amalgamation SQLite3源码

安装tcl, apt-get instal tcl

解压

mkdir build

cd build

../configure

make

#make sqlite3.c    ###生成sqlite3.c, sqlite3ext.h, shell.c

 

全部命令

tar xzf sqlite.tar.gz    ;#  Unpack the source tree into "sqlite"
mkdir bld                ;#  Build will occur in a sibling directory
cd bld                   ;#  Change to the build directory
../sqlite/configure      ;#  Run the configure script
make                     ;#  Run the makefile.
make sqlite3.c           ;#  Build the "amalgamation" source file
make test                ;#  Run some tests (requires Tcl)