接着在终端里: # cd /usr/local/sqlite-3.3.5 # ./configure # make # make install # make doc
make的时候提示错误 ../sqlite-3.3.5/src/tclsqlite.c: In function `DbUpdateHandler": ../sqlite-3.3.5/src/tclsqlite.c:333: warning: passing arg 3 of `Tcl_ListObjAppendElement" makes pointer from integer without a cast ../sqlite-3.3.5/src/tclsqlite.c: In function `tclSqlFunc": ../sqlite-3.3.5/src/tclsqlite.c:419: warning: passing arg 1 of `Tcl_NewByteArrayObj" discards qualifiers from pointer target type
# ./configure --disable-tcl --prefix=/usr/local/sqlite-3.3.5 # make 如果提示没有可以编译的文件,则是第一次make时已经执行过了,接着下面做就可以了;如果此次是第一次编译,应该不会再提示出错了 # make install # make doc
测试是否安装成功 # cd /usr/lcoal/sqlite3.3.5 # ./sqlite3 text.db
如果安装成功,会出现下面这样的信息 SQLite version 3.3.5 Enter ".help" for instructions sqlite>