欢迎光临散文网 会员登陆 & 注册

linux安装SQLite(填上个视频的坑)

2022-07-24 14:49 作者:学的很杂的一个人  | 我要投稿

视频过程戳这里:


 


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

 

 解决这个问题就是安装splite3

1、官网下载安装包

https://www.sqlite.org/download.html

 

目前最新是:


在linux下安装sqlite

 

源码下载

wget https://www.sqlite.org/2022/sqlite-autoconf-3390100.tar.gz

 


 

进入下载目录,解压文件

tar -zxvf sqlite-autoconf-3390100.tar.gz


解压后生成    目录. cd 进入。


执行配置和编译:./configure --prefix=/usr/local$make


出错了:

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

新装系统,没安装make,执行命令:

sudo apt install make

安装完成后,重新执行配置和编译:./configure --prefix=/usr/local$make

 


没有错误了。

安装开始:sudo make install

等待完成,许久之后~~~~~好久好久(我差大概用了40-50分钟)

安装成功,输入命令:sqlite3 回车执行,即可出现一下显示

安装成功,现在去重新打开homeassistant

 

进入虚拟环境:source /opt/homeassistant/bin/activate

 

 

启动:hass

 

Sqlite3的错误提示消失了,运行成功


linux安装SQLite(填上个视频的坑)的评论 (共 条)

分享到微博请遵守国家法律