Linux上安装sqlite3

tar -zxvf sqlite-snapshot-201905091837.tar.gz
cd sqlite-snapshot-201905091837
make /usr/local/sqlite3
./configure --prefix=/usr/local/sqlite3
make
make install

#ln -s /usr/local/sqlite3/bin/sqlite3 /usr/bin/sqlite3#可以不做
vi /etc/profile
export LD_LIBRARY_PATH=/usr/local/sqlite3/lib

查看版本
[root@redaht69 bin]# /opt/sqlite3/bin/sqlite3 --version
3.29.0 2019-05-09 18:37:37 1dfc95b8673b0e8c9ef5040c2fa0fbe9846e430d104e9b83f3f1f3ad63446380
[root@redaht69 bin]# python3
Python 3.6.2 (default, Nov 22 2019, 19:59:09) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> sqlite3.sqlite_version
'3.29.0'
>>>

  

猜你喜欢

转载自www.cnblogs.com/qqran/p/11922041.html