-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cd991f
commit cae0e54
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |