Centos7 升級 sqlite3


下載地址:https://www.sqlite.org/download.html

[root@djangoServer ~]# wget https://www.sqlite.org/2019/sqlite-autoconf-3290000.tar.gz
[root@djangoServer ~]# tar -zxvf sqlite-autoconf-3290000.tar.gz

#構建並安裝
[root@djangoServer ~]# cd sqlite-autoconf-3270200
[root@djangoServer sqlite-autoconf-3290000]# ./configure --prefix=/usr/local/sqlite
[root@djangoServer sqlite-autoconf-3290000]# make && make install

#檢查版本
## 最新安裝的sqlite3版本
[root@djangoServer ~]# /usr/local/sqlite/bin/sqlite3 --version

# 備份舊的sqlite3
[root@djangoServer ~]# mv /usr/bin/sqlite3 /usr/bin/sqlite3_old

## 軟鏈接將新的sqlite3設置到/usr/bin目錄下
[root@djangoServer ~]# ln -s /usr/local/sqlite/bin/sqlite3 /usr/bin/sqlite3

## 查看當前全局sqlite3的版本
[root@djangoServer ~]# sqlite3 --version
3.29.0 2019-07-10 17:32:03 fc82b73eaac8b36950e527f12c4b5dc1e147e6f4ad2217ae43ad82882a88bfa6

#將路徑傳遞給共享庫
# 設置開機自啟動執行,可以將下面的export語句寫入 ~/.bashrc 文件中,如果如果你想立即生效,可以執行source 〜/.bashrc 將在每次啟動終端時執行
[root@djangoServer ~]# export LD_LIBRARY_PATH=/usr/local/sqlite/lib


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM