Reputation: 1372
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.
Upvotes: 1
Views: 125
Reputation: 1327384
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
.
Upvotes: 3