在 centos7 上面执行 migrate 时提示:
django.core.exceptions.improperlyconfigured sqlite 3.8.3 or later is required (found 3.7.17)
解决思路:
升级 centos7 系统上 sqlite 驱动库
安装 sqlite 新版驱动库:
$ cd ~
$ wget https://www.sqlite.org/2019/sqlite-autoconf-3290000.tar.gz
$ tar zxvf sqlite-autoconf-3290000.tar.gz
cd sqlite-autoconf-3290000
$./configure --prefix=$HOME/opt/sqlite
$ make && make install
vim ~/.bash_profile 加入以下内容:
export PATH=$HOME/opt/sqlite/bin:$PATH
export LD_LIBRARY_PATH=$HOME/opt/sqlite/lib
export LD_RUN_PATH=$HOME/opt/sqlite/lib
.bash_profile 保存后:
source ~/.bash_profile