I am trying to run juju charm-server in my local machine.I followed these steps.(https://github.com/juju/charmstore) but it gives this error.When i enter make command it gives this one.
Makefile:49: *** Cannot build; /home/sajith/Projects/Backup/charm-store-server/charmstore is not on GOPATH. Stop
in my bash file i have added
GOROOT=/home/sajith/install/go/go
GOPATH=/home/sajith/Projects/Backup/charm-store-server/charmstore
and then export GOROOT and GOPATH
PATH=$PATH:$HOME/bin:$GOROOT/bin
export GOROOT
export GOPATH
I want to know how to setup these GO variable for run juju charm-store server.
Your GOPATH
should be:
GOPATH=/home/sajith/Projects/Backup
Then a go get would put the project in
/home/sajith/Projects/Backup/src/github.com/juju/charmstore
A GOPATH
defines a workspace in which go will create src
, pkg
and bin
folders.go get
will get sources in $GOPATH/src
.