下载sqlite源码包
wget https://www.sqlite.org/2022/sqlite-autoconf-3370200.tar.gz
解压源码
tar -zxvf sqlite-autoconf-3370200.tar.gz
cd ./sqlite-autoconf-3370200
编译安装
./configure --prefix=/usr/local/sqlite make && make install
设置环境变量
vim /etc/profile
export PATH=$PATH:/usr/local/sqlite/bin
更新环境变量生效
source /etc/profile
验证安装
sqlite3 SQLite version 3.37.2 2022-01-06 13:25:41 Enter ".help" for usage hints. Connected to a transient in-memory database. Use ".open FILENAME" to reopen on a persistent database. sqlite>.quit