Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I am new to GO language. I want to make a juju charm-store server but it's giving me this error:

imports exec: "hg": executable file not found` 

this is the location charm-store ( This command failed to compile:

go get -u -v -t

Does anyone know what is the reason is for this?

share|improve this question
Your environment is missing mercurial. – hbdgaf Aug 13 '14 at 10:24

1 Answer 1

The command hg comes from mercurial. which hg should report /usr/local/bin/hg. If this gives ....

  1. a different result you need to put that directory into your PATH variable. echo $PATH will show the current path. How to add a directory to my path? will show how to include that directory to the current PATH.

  2. an empty results you need to install mercurial. You can use the Ubuntu help how to install it. In short:

    sudo apt-get install mercurial meld

    The website has 2 comments on this:

    • If it fails reporting dependencies, please locate the packages and install them. If it reports any other issues, please resolve them.
    • If you cannot resolve the issue, please refer the mailing list archive of those packages.


    hg version

you can check if it reports a version number. And if that does not report an error your command will work.

share|improve this answer

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.