Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

imports code.google.com/p/go.crypto/pbkdf2: exec: "hg": executable file not found` 

this is the location charm-store (https://github.com/sajith4u/charmstore). This command failed to compile:

go get -u -v -t github.com/juju/charmstore/..

Does anyone know what is the reason is for this?

share|improve this question
1  
Your environment is missing mercurial. –  hbdgaf Aug 13 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.

With

    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

 
discard

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.