Skip to content

Commit

Permalink
dev: add sqlite3 compile script
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed Nov 29, 2016
1 parent 9cd991f commit cae0e54
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions dev/compile_sqlite3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
set -e;
export LC_ALL=en_US.UTF-8;

# install the latest version of sqlite3

# you can fetch the latest version from http://www.sqlite.org/download.html
# look for the version which says "C source code as an amalgamation. Also includes a "configure" script"

# remove version provided by package manager
sudo apt-get remove sqlite3;

# download and extract source code
SOURCE="http://www.sqlite.org/2016/sqlite-autoconf-3150100.tar.gz";
wget -q $SOURCE;
tar xvfz $(basename "$SOURCE");

# compile source
cd $(basename "$SOURCE" ".tar.gz");
./configure;
make -j4;

# install
sudo make install;

# echo new version
sqlite3 -version;

0 comments on commit cae0e54

Please sign in to comment.