mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 00:05:18 +00:00
Added setup steps for clean GO install
This commit is contained in:
parent
3c7f6cb011
commit
01afe1840f
16
README.md
16
README.md
@ -17,6 +17,22 @@ Try it out - run a full node to sync to the testnet, or set up as a validator.
|
||||
|
||||
Requirements: go installed and set up (version 1.10+).
|
||||
|
||||
0. If installing from a new Ubuntu server (16.04 or 18.04), here's how to setup go:
|
||||
sudo apt update
|
||||
sudo apt upgrade -y
|
||||
sudo apt install git gcc make wget -y
|
||||
wget https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz
|
||||
sudo tar -xvf go1.10.3.linux-amd64.tar.gz
|
||||
sudo mv go /usr/local
|
||||
|
||||
cat >> ~/.profile <<EOF
|
||||
export GOROOT=/usr/local/go
|
||||
export GOPATH=\$HOME/go
|
||||
export PATH=\$GOPATH/bin:\$GOROOT/bin:\$PATH
|
||||
EOF
|
||||
|
||||
soruce ~/.profile
|
||||
|
||||
1. Get the code.
|
||||
|
||||
mkdir -p $GOPATH/src/github.com/kava-labs
|
||||
|
Loading…
Reference in New Issue
Block a user