Skip to content

Instantly share code, notes, and snippets.

@fideloper
Last active November 17, 2019 19:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fideloper/5706d43a11f21eb59ebb9c69f33c33d3 to your computer and use it in GitHub Desktop.
Save fideloper/5706d43a11f21eb59ebb9c69f33c33d3 to your computer and use it in GitHub Desktop.
update sqlite on ubuntu 18.04 to version 2.30
#!/usr/bin/env bash
# Reference:
# https://stackoverflow.com/questions/9646353/how-to-find-sqlite-database-file-version
# Go to a known directory so we can cleanup files later
cd ~
# Download
wget https://www.sqlite.org/2019/sqlite-autoconf-3300100.tar.gz
tar -xf sqlite-autoconf-3300100.tar.gz
cd sqlite-autoconf-3300100
# Compile
./configure --prefix=/usr --disable-static CFLAGS="-g -O2 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_SOUNDEX"
make
# Quick test:
./sqlite3 --version
# Install in /usr/bin/sqlite3
sudo make install
# Optional cleanup
cd ~
rm -rf sqlite-autoconf-3300100*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment