Skip to content

How to build GOPA on macOS

liaosy edited this page Nov 27, 2017 · 1 revision

Suppose we are under macOS High Sierra(version 10.13.1), others is simliar.

1.Install go

goto https://golang.org/dl ,download go1.9.2.darwin-amd64.pkg, install with default, done.

2.Open system environment, set GOPATH to "$HOME/go"

#vim ~/.bash_profile
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN

#take effect
source  ~/.bash_profile

3.Intall git

goto https://git-scm.com/download/mac, install with default, done.

4.Create a directory for the source code

mkdir -p $GOPATH/src/github.com/infinitbyte

5.Clone GOPA source code, open command terminal

cd $GOPATH/src/github.com/infinitbyte
git clone [email protected]:infinitbyte/gopa.git
cd gopa
#If the root directory does not exist bin directory, create it.  
mkdir bin
make build

6.Done

written by liaosy([email protected])
Clone this wiki locally