1.创建目录
mkdir -p /usr/local/sqlite && cd /usr/local/sqlite
2.下载
wget wget https://www.sqlite.org/2021/sqlite-autoconf-3350500.tar.gz(这里上官网https://www.sqlite.org自己找一下)
3.解压
tar -zxvf sqlite-autoconf-3350500.tar.gz
4.编译安装
cd sqlite-autoconf-3350500 ./configure --prefix=/usr/local/sqlite make && make install
5.简历软件类
mv /usr/bin/sqlite3 /usr/bin/sqlite3.bak ln -s /usr/local/sqlite/bin/sqlite3 /usr/bin/sqlite3
6.配置环境变量并生效
vim /etc/profile source /etc/profile export LD_LIBRARY_PATH="/usr/local/sqlite/lib"
7.检查版本
sqlite3 --version