Last active
December 12, 2017 15:50
-
-
Save richardwu/18b2f1390e4fed82cd92351b73073263 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Install dependencies | |
| curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
| curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
| echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
| sudo apt-get update | |
| sudo apt-get install build-essential ccache cmake autoconf yarn libedit-dev nodejs | |
| echo -ne 'Y\n' | |
| echo 'export PATH="/usr/lib/ccache:$PATH"' >> ~/.profile | |
| # Get Go | |
| cd /usr/local | |
| curl https://storage.googleapis.com/golang/go1.9.2.linux-amd64.tar.gz | tar -xz | |
| cd ~ | |
| echo 'export GOROOT=/usr/local/go' >> ~/.profile | |
| echo 'export PATH=$PATH:$GOROOT/bin' >> ~/.profile | |
| mkdir ~/go | |
| echo 'export GOPATH=$HOME/go' >> ~/.profile | |
| source ~/.profile | |
| # Install cockroach | |
| go get github.com/cockroachdb/cockroach | |
| cd "$GOPATH/src/github.com/cockroachdb/cockroach" | |
| make build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment