sqlite的安装

来源:互联网 发布:淘宝客服是卖家本人吗 编辑:程序博客网 时间:2024/04/29 20:41

使用版本:sqlite-3.6.14.2

下载地址:http://www.sqlite.org/sqlite-3.6.14.2.tar.gz

首先参考readme的提示:

    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 install             ;#  (Optional) Install the build products

下面开始安装

第一步:创建sqlite安装目录

mkdir sqlite

第二部:创建build目录

mkdir bld

cd bld

 

第三步:最关键的一步,生成makefile文件

../sqlite-3.6.14.2/configure --disable-tcl --prefix=/root/sqlite

这一步和readme中描述的不同

如果不加--disable-tcl,会因为tcl.h文件找不到而编译通不过。

 

最后执行make & make install,sqlite成功安装。