加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

sqlite的安装

发布时间:2020-12-13 00:23:46 所属栏目:百科 来源:网络整理
导读:使用版本: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

使用版本: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成功安装。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读