Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to run juju charm-server in my local machine.I followed these steps.( 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


and then export GOROOT and GOPATH

export GOROOT
export GOPATH

I want to know how to setup these GO variable for run juju charm-store server.

share|improve this question
up vote 3 down vote accepted

You can have charmstore at GOPATH=/home/sajith/Projects/Backup/charm-store-server/charmstore as you have written, however, then you need to change GOPATH for any other project.

I would recommend setting the GOPATH to:

  1. mkdir /home/sajith/Projects/Backup/go
  2. export GOPATH=/home/sajith/Projects/Backup/go
  3. mkdir $GOPATH/src

Do the

go get -u -v -t

The charmstore code is located in:

cd $GOPATH/src/

Then execute:

  1. make deps
  2. make sysdeps
  3. make install

Edit your question with new data to see if this helps.

share|improve this answer
Thanks for your help.i will do this way. – Sajithv Aug 26 '14 at 18:19
Hi i have done what you said.But when i run make deps it gives this error.godeps -u dependencies.tsv make: godeps: Command not found make: *** [deps] Error 127 – Sajithv Aug 27 '14 at 6:23
Try adding this: go get When the command finished, check if godeps is in $PATH and rerun make deps. – UrosJ Aug 27 '14 at 20:24
Hi now charmstore server is running on 8080.But i can't retrieve any commands like /charm-info or /charm-event it always gives empty bracket."{}" so i can see charms in mongodb – Sajithv Sep 11 '14 at 9:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.