Setup Spectrum Development Environment on Mac OS
Sep 5, 2018 · 1 min read
install go
brew install govim ~/.bash_profile
edit ~/.bash_profile , add $GOPATH
#replace ~/go_project with your path
export GOPATH=~/go_project
export PATH=.:$PATH:$GOPATH:$GOPATH/bincreate src,pkg,bin folder under $GOPATH
mkdir -p $GOPATH/bin $GOPATH/pkg $GOPATH/srctest go
source ~/.bash_profile
go envinstall git
brew install gitbuild Spectrum from source
clone latest source code to $GOPATH
mkdir -p $GOPATH/src/github.com/SmartMeshFoundation
cd $GOPATH/src/github.com/SmartMeshFoundation
git clone https://github.com/SmartMeshFoundation/Spectrumbuild smc
cd $GOPATH/src/github.com/SmartMeshFoundation/Spectrum/
go install -v ./cmd/smcsmc excutable file:$GOPAT/bin/smc . test smc
smc consoleAbout IDE
The popular golang IDE under Mac are GoLand,VSCode,GoVim...,choose the IDE you like。
