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

  

 

相关文章:

  • 2022-12-23
  • 2021-11-19
  • 2021-09-21
  • 2021-06-06
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
猜你喜欢
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
相关资源
相似解决方案