github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/cosmos-sdk/scripts/install/install_sdk_bsd.sh (about) 1 #!/usr/bin/tcsh 2 3 # Just run tcsh install_sdk_bsd.sh 4 # XXX: this script is intended to be run from 5 # a fresh Digital Ocean droplet with FreeBSD 6 7 # upon its completion, you must either reset 8 # your terminal or run `source ~/.tcshrc` 9 10 # This assumes your installing it through tcsh as root. 11 # Change the relevant lines from tcsh to csh if your 12 # installing as a different user, along with changing the 13 # gopath. 14 15 # change this to a specific release or branch 16 set BRANCH=master 17 set REPO=github.com/cosmos/cosmos-sdk 18 19 set GO_VERSION=1.12.5 20 21 sudo pkg update 22 23 sudo pkg upgrade -y 24 sudo pkg install -y gmake 25 sudo pkg install -y git 26 27 # get and unpack golang 28 curl -O https://storage.googleapis.com/golang/go$GO_VERSION.freebsd-amd64.tar.gz 29 tar -xvf go$GO_VERSION.freebsd-amd64.tar.gz 30 31 # move go binary and add to path 32 mv go /usr/local 33 set path=($path /usr/local/go/bin) 34 35 36 # create the go directory, set GOPATH, and put it on PATH 37 mkdir go 38 echo "setenv GOPATH /root/go" >> ~/.tcshrc 39 setenv GOPATH /root/go 40 echo "set path=($path $GOPATH/bin)" >> ~/.tcshrc 41 42 source ~/.tcshrc 43 44 # get the code and move into repo 45 go get $REPO 46 cd $GOPATH/src/$REPO 47 48 # build & install master 49 git checkout $BRANCH 50 gmake tools 51 gmake install 52 gmake install_examples