Upgrade sqlite3: Difference between revisions
Jump to navigation
Jump to search
(Created page with "This is a quick guide to upgrade sqlite3 on server and in python === Download sqlite3 source code === cd /tmp wget https://sqlite.org/2022/sqlite-autoconf-<version>.tar.gz...") |
No edit summary |
||
Line 19: | Line 19: | ||
To check: | To check: | ||
python3 -c "import sqlite3; print(sqlite3.sqlite_version)" | python3 -c "import sqlite3; print(sqlite3.sqlite_version)" | ||
[[Category:Sysadmin]] |
Latest revision as of 06:45, 22 February 2022
This is a quick guide to upgrade sqlite3 on server and in python
Download sqlite3 source code
cd /tmp wget https://sqlite.org/2022/sqlite-autoconf-<version>.tar.gz tar xvf sqlite-autoconf-<version>.tar.gz
Compile
cd sqlite-autoconf-<version> ./configure make make install ** the new sqlite3 library will be install into /usr/local/lib
Make server and python compiler "see" the new library
You must add this line to /root/.bashrc and/or /etc/profile
export LD_LIBRARY_PATH="/usr/local/lib"
To check:
python3 -c "import sqlite3; print(sqlite3.sqlite_version)"