Browse Source

more maintainable/useful install scripts

pull/2844/head
zramsay 6 years ago
committed by Anton Kaliaev
parent
commit
814a88a69b
3 changed files with 19 additions and 13 deletions
  1. +7
    -5
      scripts/install/install_tendermint_arm.sh
  2. +5
    -3
      scripts/install/install_tendermint_bsd.sh
  3. +7
    -5
      scripts/install/install_tendermint_ubuntu.sh

+ 7
- 5
scripts/install/install_tendermint_arm.sh View File

@ -13,19 +13,21 @@ REPO=github.com/tendermint/tendermint
# change this to a specific release or branch # change this to a specific release or branch
BRANCH=master BRANCH=master
GO_VERSION=1.11.2
sudo apt-get update -y sudo apt-get update -y
# get and unpack golang # get and unpack golang
curl -O https://storage.googleapis.com/golang/go1.11.2.linux-armv6l.tar.gz
tar -xvf go1.11.2.linux-armv6l.tar.gz
curl -O https://storage.googleapis.com/golang/go$GO_VERSION.linux-armv6l.tar.gz
tar -xvf go$GO_VERSION.linux-armv6l.tar.gz
# move go folder and add go binary to path # move go folder and add go binary to path
sudo mv go /usr/local sudo mv go /usr/local
echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile
# create the goApps directory, set GOPATH, and put it on PATH
mkdir goApps
echo "export GOPATH=$HOME/goApps" >> ~/.profile
# create the go directory, set GOPATH, and put it on PATH
mkdir go
echo "export GOPATH=$HOME/go" >> ~/.profile
echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.profile echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.profile
source ~/.profile source ~/.profile


+ 5
- 3
scripts/install/install_tendermint_bsd.sh View File

@ -14,6 +14,9 @@
# change this to a specific release or branch # change this to a specific release or branch
set BRANCH=master set BRANCH=master
set REPO=github.com/tendermint/tendermint
set GO_VERSION=1.11.2
sudo pkg update sudo pkg update
@ -21,8 +24,8 @@ sudo pkg install -y gmake
sudo pkg install -y git sudo pkg install -y git
# get and unpack golang # get and unpack golang
curl -O https://storage.googleapis.com/golang/go1.11.freebsd-amd64.tar.gz
tar -xvf go1.11.freebsd-amd64.tar.gz
curl -O https://storage.googleapis.com/golang/go$GO_VERSION.freebsd-amd64.tar.gz
tar -xvf go$GO_VERSION.freebsd-amd64.tar.gz
# move go folder and add go binary to path # move go folder and add go binary to path
sudo mv go /usr/local sudo mv go /usr/local
@ -38,7 +41,6 @@ echo "set path=($path $GOPATH/bin)" >> ~/.tcshrc
source ~/.tcshrc source ~/.tcshrc
# get the code and move into repo # get the code and move into repo
set REPO=github.com/tendermint/tendermint
go get $REPO go get $REPO
cd "$GOPATH/src/$REPO" cd "$GOPATH/src/$REPO"


+ 7
- 5
scripts/install/install_tendermint_ubuntu.sh View File

@ -13,20 +13,22 @@ REPO=github.com/tendermint/tendermint
# change this to a specific release or branch # change this to a specific release or branch
BRANCH=master BRANCH=master
GO_VERSION=1.11.2
sudo apt-get update -y sudo apt-get update -y
sudo apt-get install -y make sudo apt-get install -y make
# get and unpack golang # get and unpack golang
curl -O https://storage.googleapis.com/golang/go1.11.linux-amd64.tar.gz
tar -xvf go1.11.linux-amd64.tar.gz
curl -O https://storage.googleapis.com/golang/go$GO_VERSION.linux-amd64.tar.gz
tar -xvf go$GO_VERSION.linux-amd64.tar.gz
# move go folder and add go binary to path # move go folder and add go binary to path
sudo mv go /usr/local sudo mv go /usr/local
echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.profile
# create the goApps directory, set GOPATH, and put it on PATH
mkdir goApps
echo "export GOPATH=$HOME/goApps" >> ~/.profile
# create the go directory, set GOPATH, and put it on PATH
mkdir go
echo "export GOPATH=$HOME/go" >> ~/.profile
echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.profile echo "export PATH=\$PATH:\$GOPATH/bin" >> ~/.profile
source ~/.profile source ~/.profile


Loading…
Cancel
Save