CentOS下更新SQLite版本
更新時間:2021年12月08日 10:47:36 作者:最愛番茄炒蛋
SQLite是一個軟件庫,實現(xiàn)了自給自足的、無服務器的、零配置的、事務性的 SQL 數(shù)據(jù)庫引擎。這篇文章主要介紹了CentOS下更新SQLite版本,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧
查看系統(tǒng)的sqlte3的版本
[root@djangoServer work]# sqlite3 --version 3.7.17 2013-05-20 00:56:22 118a3b35693b134d56ebd780123b7fd6f1497668 [root@djangoServer work]#
果然Centos系統(tǒng)自帶的sqlite3版本偏低,在上面的錯誤提示中要求需要SQLite 3.8.3 or later,那么就需要去升級 SQlite 的版本了。
Centos7安裝最新的sqlite3并設置更新python庫版本
#更新SQLite 3 #獲取源代碼(在主目錄中運行) [root@djangoServer ~]# cd ~ [root@djangoServer ~]# wget https://www.sqlite.org/2019/sqlite-autoconf-3270200.tar.gz [root@djangoServer ~]# tar -zxvf sqlite-autoconf-3270200.tar.gz #構建并安裝 [root@djangoServer ~]# cd sqlite-autoconf-3270200 [root@djangoServer sqlite-autoconf-3270200]# ./configure --prefix=/usr/local/sqlite [root@djangoServer sqlite-autoconf-3270200]# make && make install #檢查版本 ## 最新安裝的sqlite3版本 [root@djangoServer ~]# /usr/local/sqlite/bin/sqlite3 --version 3.27.2 2019-02-25 16:06:06 bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0f6d7 [root@djangoServer ~]# ## Centos7自帶的sqlite3版本 [root@djangoServer ~]# /usr/bin/sqlite3 --version 3.7.17 2013-05-20 00:56:22 118a3b35693b134d56ebd780123b7fd6f1497668 [root@djangoServer ~]# ## 可以看到sqlite3的版本還是舊版本,那么需要更新一下。 [root@djangoServer ~]# sqlite3 --version 3.7.17 2013-05-20 00:56:22 118a3b35693b134d56ebd780123b7fd6f1497668 [root@djangoServer ~]# ## 更改舊的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.27.2 2019-02-25 16:06:06 bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0f6d7 [root@djangoServer ~]# #將路徑傳遞給共享庫 # 設置開機自啟動執(zhí)行,可以將下面的export語句寫入 ~/.bashrc 文件中,如果如果你想立即生效,可以執(zhí)行source ?/.bashrc 將在每次啟動終端時執(zhí)行 [root@djangoServer ~]# export LD_LIBRARY_PATH=/usr/local/sqlite/lib
到此這篇關于CentOS下更新SQLite版本的文章就介紹到這了。希望對大家的學習有所幫助,也希望大家多多支持腳本之家。
您可能感興趣的文章:
相關文章
System.Data.SQLite 數(shù)據(jù)庫詳細介紹
System.Data.SQLite是SQLite的加強版,它可以無需.NET Framework支持,由于它內(nèi)部包含了一個ADO.NET 2.0引擎,所以.NET開發(fā)人員可以利用System.Data.SQLite方便地開發(fā).NET程序。2011-02-02
sQlite常用語句以及sQlite developer的使用與注冊
sQlite數(shù)據(jù)庫對大家來說應該都不陌生,下面這篇文章主要給大家介紹了關于sQlite常用語句以及sQlite developer使用與注冊的相關資料,文中通過示例代碼與圖片給大家介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,下面來一起看看吧。2017-10-10
SQLite教程(五):索引和數(shù)據(jù)分析/清理
這篇文章主要介紹了SQLite教程(五):索引和數(shù)據(jù)分析/清理,本文講解了創(chuàng)建索引、刪除索引、重建索引、數(shù)據(jù)分析、數(shù)據(jù)清理等內(nèi)容,需要的朋友可以參考下2015-05-05
保護你的Sqlite數(shù)據(jù)庫(SQLite數(shù)據(jù)庫安全秘籍)
相信使用PHP開發(fā)的人員一定不會對SQLite感到陌生了,PHP5已經(jīng)集成了這個輕量型的數(shù)據(jù)庫。并且很多虛擬主機無論是win還是*nux都支持它。2009-08-08
SQLite數(shù)據(jù)庫常用語句及MAC上的SQLite可視化工具MeasSQLlite使用方法
這篇文章主要介紹了SQLite數(shù)據(jù)庫常用語句及MAC上的SQLite可視化工具MeasSQLlite使用方法,需要的朋友可以參考下2016-01-01

