Building from source

Marco Ceppi marco.ceppi at canonical.com
Sun Feb 14 21:40:42 UTC 2016


This happened to me on the first time. (I too am not a golang hacker, we'll
walk through this together).

To start, juju doesn't just use the standard golang dep management, so
you'll need godeps. I've been doing this to get there:

cd $GOPATH/src/github.com/juju/juju
JUJU_MAKE_GODEPS=true make

This will install godeps command and update the source. After that's done
you can now do

go get -v github.com/juju/juju/. <http://github.com/juju/juju/>..

which will rebuild with the deps fetched via godeps command and should end
up with a $GOPATH/bin/juju binary. From there, have fun!

Marco


On Sun, Feb 14, 2016 at 4:37 PM Tom Barber <tom at analytical-labs.com> wrote:

> Okay
>
> More Sunday night spam, apologies for this, I'm new to Go, but hey, I like
> learning new stuff so I wanted to try and figure out how to plugin the M4
> large into EC2.
>
> installed Go and ran:
>
> go get -d -v github.com/juju/juju/...
>
> and I get:
>
> github.com/Azure/azure-sdk-for-go (download)
> package
> github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/github.com/Azure/go-autorest/autorest:
> cannot find package "
> github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/github.com/Azure/go-autorest/autorest"
> in any of:
> /usr/local/go/src/
> github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/github.com/Azure/go-autorest/autorest
> (from $GOROOT)
> /home/bugg/Projects/work/src/
> github.com/Azure/azure-sdk-for-go/Godeps/_workspace/src/github.com/Azure/go-autorest/autorest
> (from $GOPATH)
>
> Help! :)
>
>
>
> --------------
>
> Director Meteorite.bi - Saiku Analytics Founder
> Tel: +44(0)5603641316
>
> (Thanks to the Saiku community we reached our Kickstart
> <http://kickstarter.com/projects/2117053714/saiku-reporting-interactive-report-designer/>
> goal, but you can always help by sponsoring the project
> <http://www.meteorite.bi/products/saiku/sponsorship>)
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20160214/ffc9913f/attachment.html>


More information about the Juju mailing list