[lxc-users] LXD + OS X

Kevin LaTona lists at studiosola.com
Sat Aug 1 04:03:49 UTC 2015


Mike,

Thanks that showed me what I was doing wrong.

The LXC client did get built,  I was not calling it's path correctly.

I was thinking this LXC client would have gone into a Mac OS level folder and not these GO folders.


-Kevin




On Jul 31, 2015, at 2:56 PM, Mike McCracken <mike.mccracken at canonical.com> wrote:

> Hi Kevin, this just worked for me on OS X 10.10.4 with golang 1.4.2 installed from the package here: https://golang.org/dl/
> 
> mkdir ~/go
> export GOPATH=~/go
> go get -v github.com/lxc/lxd
> cd ~go/src/github.com/lxc/lxd
> go get -v ./...
> go install -v ./lxc
> 
> ~/go/bin/lxc version
> 
> ==> 1.4
> 
> If the same steps don't work for you, please copy in the error message you're seeing and I'll try to help out.
> 
> Thanks!
> -mike
> 
> 
> On Fri, Jul 31, 2015 at 1:12 PM, Kevin LaTona <lists at studiosola.com> wrote:
> 
> 
> I just walked through a bunch of path levels trying to see what might build.
> 
> It looked like it did at one point build a client or ????
> 
> But then I have not been able to locate it.
> 
> Nor will it execute in the OS X terminal yet to even error out in any way to say it's found.
> 
> 
> it choked here                                                  /Users/kevin/.go/src/github.com/lxc
> 
> it seemed like it was building here             /Users/kevin/.go/src/github.com/lxc/lxd
> 
> Then it chocked here                            /Users/kevin/.go/src/github.com/lxc/lxd/lxc
> 
> 
> I know development is smoking along here and folks are slammed.
> 
> But right now there is zero docs about how to make this happen make a LXC client run on a OS X machine.
> 
> Any thoughts from anyone who has it running under OS X are welcomed.
> 
> 
> -Kevin
> 
> 
> 
> 
> On Jul 31, 2015, at 12:50 PM, Kevin LaTona <lists at studiosola.com> wrote:
> 
> >
> > Thanks Tycho as it seems I am getting closer but not there yet.
> >
> > When I installed Go on this Mac I placed a folder at       ~/.go
> >
> > From there I had Go install the LXD files based on what I found floating about on the net.
> >
> > I think it's done correctly.
> >
> >
> > I took your suggestion and tried a few other path options and so far none are working.
> >
> >
> >
> > It appears that Go is looking for a path at
> >
> > /Users/kevin/.go/src/github.com/lxc/lxc
> >
> > And what was installed in the      /Users/kevin/.go/src/github.com      path
> >
> >
> > Is  a lxd folder and not a lxc folder at that level
> >
> > /Users/kevin/.go/src/github.com/lxc/lxd
> >
> >
> >
> > At this point not sure if the Go LXD script is looking at the wrong place.
> >
> > Or something was not install that should of been in the initial install process.
> >
> >
> > I'll keep tweaking some things to see if it will kick in.
> >
> > But again if anyone has any insights on what or why this doing this… thanks.
> >
> >
> > -Kevin
> >
> >
> >
> >
> >
> > On Jul 30, 2015, at 11:44 PM, Tycho Andersen <tycho.andersen at canonical.com> wrote:
> >
> >> On Thu, Jul 30, 2015 at 03:27:44PM -0700, Kevin LaTona wrote:
> >>> Thanks Bill, that got me closer but it still is not working.
> >>>
> >>>
> >>> When I do a make I get back
> >>>
> >>>
> >>> lxd kevin$ make
> >>> go get -v -d ./...
> >>> go install -v ./...
> >>> github.com/lxc/lxd/lxd/migration
> >>> # github.com/lxc/lxd/lxd/migration
> >>> lxd/migration/migrate.go:38: undefined: lxc.Container
> >>> make: *** [default] Error 2
> >>>
> >>>
> >>> If anyone is running the client on OS X and has it working…… any insights would be helpful.
> >>
> >> Here you're trying to build the daemon; don't do that :). Try,
> >>
> >> go install ./lxc
> >>
> >> Tycho
> >>
> >>>
> >>> Thanks
> >>> -Kevin
> >>>
> >>>
> >>>
> >>> On Jul 30, 2015, at 12:57 PM, Bill Anderson <bill.anderson at RACKSPACE.COM> wrote:
> >>>
> >>>>
> >>>>> On Jul 30, 2015, at 2:23 PM, Kevin LaTona <lists at studiosola.com> wrote:
> >>>>>
> >>>>>
> >>>>> Looking for any GO people on the list who might be able to help me dechiper what this error means which trying to install LXD CLI on to a OS X machine.
> >>>>>
> >>>>> If I check my current GO path on OS X it's at /usr/local/go
> >>>>>
> >>>>> Which is where GO installed it at.
> >>>>>
> >>>>>
> >>>>> I got the current LXD tar ball
> >>>>> CD to it's top folder and called make
> >>>>>
> >>>>> From here it give GO path not found error…….through out the whole make script
> >>>>>
> >>>>> lxd-0.14 kevin$ make
> >>>>> go get -v -d ./...
> >>>>> package github.com/chai2010/gettext-go/gettext: cannot download, $GOPATH not set.
> >>>>
> >>>> You need to set your GOPATH environment variable. This is where it will put the repo which ‘go get’ will get. Personally, I use $HOME/.go but it can be wherever you want it to be. See https://github.com/golang/go/wiki/GOPATH and/or http://www.ryanday.net/2012/10/01/installing-go-and-gopath/  for more details.
> >>>
> >>
> >>> _______________________________________________
> >>> lxc-users mailing list
> >>> lxc-users at lists.linuxcontainers.org
> >>> http://lists.linuxcontainers.org/listinfo/lxc-users
> >>
> >> _______________________________________________
> >> lxc-users mailing list
> >> lxc-users at lists.linuxcontainers.org
> >> http://lists.linuxcontainers.org/listinfo/lxc-users
> >
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> 
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
> 
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150731/7362324c/attachment.html>


More information about the lxc-users mailing list