Rebuilding Juju Binaries from Source
UPDATE: 2015-01-13 – A few corrections after Juju source code has migrated to GitHub.
If you are using the current development version of Juju and making changes to try things out, you should rebuild the binaries before attempting to call
juju bootstrap --upload-tools again. Otherwise, you’ll end up using some preexisting, quite possibly old binaries found in
I use this handy little script to rebuild them:
pushd $GOPATH/src/github.com/juju/juju # Change this if needed
ls -la `which juju`
ls -la `which jujud`
You might need to change line 2 if your juju source is elsewhere, if
$GOPATH is not set , or if it contains more than one path – e.g. mine is in
I called this script
rebuild-juju and saved if somewhere listed in
$PATH, so I can run it from anywhere. It has the nice feature of restoring back your current directory when done and lists the built binaries, so you can see the modification timestamps.