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


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.

1 Answer 1


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 github.com/juju/charmstore/...

The charmstore code is located in:

cd $GOPATH/src/github.com/juju/charmstore

Then execute:

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

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

  • 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 Aug 27, 2014 at 6:23
  • Try adding this: go get launchpad.net/godeps/... When the command finished, check if godeps is in $PATH and rerun make deps.
    – UrosJ
    Aug 27, 2014 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 Sep 11, 2014 at 9:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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