Created
May 1, 2022 08:36
-
-
Save bluebrown/85e1b39980f50c66682743afe0d8b316 to your computer and use it in GitHub Desktop.
install dqlite from source
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
#!/usr/bin/env sh | |
set -e | |
# install build tools | |
# | |
apt-get -y update | |
apt-get -y --no-install-recommends install autoconf make | |
# get & compile raft | |
# https://github.com/canonical/raft | |
# | |
git clone https://github.com/canonical/raft.git /tmp/raft | |
cd /tmp/raft | |
apt-get install -y libtool liblz4-dev libuv1-dev | |
autoreconf -i | |
./configure | |
make | |
make install | |
cd - | |
rm -rf /tmp/raft | |
# get & compile dqlite | |
# https://github.com/canonical/dqlite | |
# | |
git clone https://github.com/canonical/dqlite.git /tmp/dqlite | |
cd /tmp/dqlite | |
apt-get install -y libsqlite3-dev | |
autoreconf -i | |
./configure | |
make | |
make install | |
cd - | |
rm -rf /tmp/dqlite | |
# get & compile sqlite3 | |
# https://www.sqlite.org/download.html | |
# | |
cd /tmp | |
curl -fsSLO https://www.sqlite.org/2022/sqlite-autoconf-3380300.tar.gz | |
tar -xzf sqlite-autoconf-3380300.tar.gz | |
cd sqlite-autoconf-3380300 | |
autoreconf -i | |
./configure | |
make | |
make install | |
cd - | |
rm -rf /tmp/sqlite-autoconf-3380300.tar.gz /tmp/sqlite-autoconf-3380300 | |
# configure dynamic linker run-time bindings | |
# | |
ldconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment