Code, juju, Planet

Compiling juju-core from source

This isn’t going to be a long winded blog post on how to compile Juju with context behind it. I just need a place to keep up to date with how it’s done. Here are my notes.

1
2
3
4
5
6
7
8
9
10
sudo apt-get update
sudo apt-get install golang bzr git mercurial make
 
mkdir -p ~/go
export GOPATH=$HOME/go
export GOROOT=/usr/lib/go
go get launchpad.net/godeps/...
go get -v github.com/juju/juju/...
cd ~/go/src/github.com/juju/juju
[... do a bunch of gitty stuff ...]
1
2
3
4
5
cd ~/go/src/github.com/juju/juju
JUJU_MAKE_GODEPS=true make godeps
make build
go get -v github.com/juju/juju/...
$GOPATH/bin/juju version

You now have the latest version installed. Perform the last code block each time you wish to recompile.