mirror of
https://github.com/rqlite/rqlite.git
synced 2026-01-25 12:26:20 +00:00
21 lines
468 B
Bash
Executable File
21 lines
468 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Dependencies
|
|
add-apt-repository ppa:git-core/ppa -y
|
|
echo "Updating..."
|
|
apt-get update
|
|
apt-get install -y curl git bison make mercurial sqlite3
|
|
|
|
# Golang
|
|
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
|
|
source ~/.gvm/scripts/gvm
|
|
gvm install go1.4
|
|
gvm use go1.4
|
|
|
|
# Rqlite
|
|
mkdir -p rqlite
|
|
cd rqlite
|
|
export GOPATH=$PWD
|
|
go get github.com/rqlite/rqlite/...
|
|
ln -s $GOPATH/bin/rqlited /usr/local/bin/rqlited
|