Linux 编译安装 SQLite3

介绍

sqlite3是一个比较常用的程序模块,在编译一些程序的时候会依赖这个模块,但是我测试过程中发现,这个模块没法直接使用apt安装,即时用apt安装了也无法在编译验证脚本中通过,所以需要手动安装。

下载源码

首先需要从sqlite3的官网下载源码,下载链接:https://www.sqlite.org/download.html
sqlite3下载页面
找到source code,复制其中的链接,建议选择.tar.gz格式,因为.zip是没有编译脚本的,需要自行编译,非常复杂。

获取源码

Bash
1
wget https://www.sqlite.org/2022/sqlite-autoconf-3400100.tar.gz

解压源码包

Bash
1
tar -zvxf sqlite-autoconf-3400100.tar.gz

开始编译

进入目录

Bash
1
cd sqlite-autoconf-3400100

检测&生成编译脚本

Bash
1
./configure

配置完成截图
当看到类似如图信息时,就说明编译脚本生成成功了,如果没有出现这个可以阅读错误信息并尝试解决。

编译源码

Bash
1
make

安装

编译完成截图
编译完成后会出现输入行,如果输出信息中没有报错就说明编译成功,然后就可以安装了

Bash
1
make install

检测

安装完成截图
安装过程会输出非常多内容,等到输出停止后就安装完成,如果没有报错就是安装成功,最后再检测是否被识别到

Bash
1
pkg-config --libs sqlite3

检测截图

结尾

这篇教程到这里就结束了,如果你在操作过程中遇到问题可以在下方评论区留言,感谢您的耐心阅读

Linux 编译安装 SQLite3

https://blog.tsinbei.com/archives/1141/

文章作者
SCH
发布于

2023-02-05

修改于

2023-11-16

许可协议

CC BY-NC-ND 4.0

# SQL  PHP  软件  MySQL  SQLite  数据库  编译

评论

昵称
邮箱
网址
4 条

800

800

Nice post. I was checking continuously this blogg
and I aam impressed! Extremely helpful informatiion specially the last psrt :) I care for such info a lot.
I was looking for this certain info for

  回复

SCH

SCH 作者

Thank you for reading this article and recognizing it, and have a great day! :)

  回复

xxxtube2022.com

xxxtube2022.com

I thinkk what youu wrote made a lott of sense. But, thijk about this,
what if you wre to create a kuller title? I amm nott uggesting your inforemation isn't solid.,
however what if you added a

  回复

SCH

SCH 作者

Thank you for reading this article and recognizing it, and have a great day! :)

  回复