linux安裝SQLite(填上個(gè)視頻的坑)
視頻過程戳這里:

?

Logger: homeassistant.components.recorder.util
Source: components/recorder/util.py:344
Integration: recorder (documentation, issues)
First occurred: 2022年7月20日 13:53:08 (1 occurrences)
Last logged: 2022年7月20日 13:53:08
?
Version 3.27.2 of SQLite is not supported; minimum supported version is 3.31.0. Starting with Home Assistant 2022.6 this prevents the recorder from starting. Please upgrade your database software
?
?解決這個(gè)問題就是安裝splite3
1、官網(wǎng)下載安裝包
https://www.sqlite.org/download.html
?
目前最新是:

在linux下安裝sqlite
?
源碼下載
wget https://www.sqlite.org/2022/sqlite-autoconf-3390100.tar.gz
?

?
進(jìn)入下載目錄,解壓文件
tar -zxvf sqlite-autoconf-3390100.tar.gz

解壓后生成??? 目錄. cd 進(jìn)入。

執(zhí)行配置和編譯:./configure?--prefix=/usr/local$make

出錯(cuò)了:
error: Something went wrong bootstrapping makefile fragments
??? for automatic dependency tracking.? If GNU make was not used, consider
??? re-running the configure script with MAKE="gmake" (or whatever is
??? necessary).? You can also try re-running configure with the
??? '--disable-dependency-tracking' option to at least be able to build
??? the package (albeit without support for automatic dependency tracking).
See `config.log' for more details

新裝系統(tǒng),沒安裝make,執(zhí)行命令:
sudo apt install make
安裝完成后,重新執(zhí)行配置和編譯:./configure --prefix=/usr/local$make

?

沒有錯(cuò)誤了。
安裝開始:sudo make install

等待完成,許久之后~~~~~好久好久(我差大概用了40-50分鐘)
安裝成功,輸入命令:sqlite3 回車執(zhí)行,即可出現(xiàn)一下顯示

安裝成功,現(xiàn)在去重新打開homeassistant
?
進(jìn)入虛擬環(huán)境:source /opt/homeassistant/bin/activate
?
?
啟動(dòng):hass
?
Sqlite3的錯(cuò)誤提示消失了,運(yùn)行成功
