Quantcast

[cf-lattice] Need help compiling Lattice ltc

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[cf-lattice] Need help compiling Lattice ltc

Michael Bechauf
Hi there,

perhaps I was a bit foolish to try to get Lattice to run on Windows. I managed to bring up the Lattice Vagrant image, and was hoping to compile ltc for Windows, but get a number of errors. A few are obvious due to missing Unix syscalls, but the other ones were not. I then switched to a Vagrant Ubuntu compile, which resolves the syscall problems, but has others. I hope somebody can help me to get ltc/Lattice to work.

For right now, I tried to follow the instructions and did a "go get -d github.com/cloudfoundry-incubator/lattice/ltc". The compile eventually fails because ltc refers to docker/docker/nat which doesn't exist in the latest Docker release. I therefore check out the Docker branch 1.7.1 which is the latest branch with docker/docker/nat as opposed to docker/docker/pkg/nat. I also did a Docker compile to resolve the autogen errors.

This eventually led me to $GOPATH/src/github.com/cloudfoundry-incubator/lattice/ltc/scripts/install which leads to a number of very strange errors that I cannot resolve. Hope somebody can help:

# github.com/cloudfoundry-incubator/lattice/ltc/app_runner
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/app_runner/app_runner.go:339: cannot use setupAction (type *"github.com/cloudfoundry-incubator/runtime-schema
/models".SerialAction) as type *"github.com/cloudfoundry-incubator/bbs/models".Action in field value
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/app_runner/app_runner.go:359: cannot use "github.com/cloudfoundry-incubator/runtime-schema/models".ParallelAc
tion literal (type *"github.com/cloudfoundry-incubator/runtime-schema/models".ParallelAction) as type *"github.com/cloudfoundry-incubator/bbs/models".Action in field value
# github.com/docker/docker/registry
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/docker/docker/registry/registry.go:189: undefined: v2.ErrorCodeUnauthorized
# github.com/cloudfoundry-incubator/lattice/ltc/task_runner
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/task_runner/create_task_params.go:15: cannot use action (type "github.com/cloudfoundry-incubator/runtime-sche
ma/models".Action) as type *"github.com/cloudfoundry-incubator/bbs/models".Action in field value
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/task_runner/create_task_params.go:22: cannot use buildReceptorEnvironment(env) (type []receptor.EnvironmentVa
riable) as type []*"github.com/cloudfoundry-incubator/bbs/models".EnvironmentVariable in field value
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/task_runner/create_task_params.go:23: cannot use egressRules (type []"github.com/cloudfoundry-incubator/runti
me-schema/models".SecurityGroupRule) as type []*"github.com/cloudfoundry-incubator/bbs/models".SecurityGroupRule in field value
vagrant@ubuntu-trusty-64:~/go/src/github.com/cloudfoundry-incubator/lattice/ltc/scripts$ go install github.com/cloudfou
ndry-incubator/lattice/ltc
# github.com/cloudfoundry-incubator/lattice/ltc/app_runner
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/app_runner/app_runner.go:339: cannot use setupAction (type *"github.com/cloudfoundry-incubator/runtime-schema
/models".SerialAction) as type *"github.com/cloudfoundry-incubator/bbs/models".Action in field value
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/app_runner/app_runner.go:359: cannot use "github.com/cloudfoundry-incubator/runtime-schema/models".ParallelAc
tion literal (type *"github.com/cloudfoundry-incubator/runtime-schema/models".ParallelAction) as type *"github.com/cloudfoundry-incubator/bbs/models".Action in field value
# github.com/docker/docker/registry
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/docker/docker/registry/registry.go:189: undefined: v2.ErrorCodeUnauthorized
# github.com/cloudfoundry-incubator/lattice/ltc/task_runner
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/task_runner/create_task_params.go:15: cannot use action (type "github.com/cloudfoundry-incubator/runtime-sche
ma/models".Action) as type *"github.com/cloudfoundry-incubator/bbs/models".Action in field value
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/task_runner/create_task_params.go:22: cannot use buildReceptorEnvironment(env) (type []receptor.EnvironmentVa
riable) as type []*"github.com/cloudfoundry-incubator/bbs/models".EnvironmentVariable in field value
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/task_runner/create_task_params.go:23: cannot use egressRules (type []"github.com/cloudfoundry-incubator/runti
me-schema/models".SecurityGroupRule) as type []*"github.com/cloudfoundry-incubator/bbs/models".SecurityGroupRule in field value
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[cf-lattice] Re: Need help compiling Lattice ltc

Iovanov, Vlad Mircea
Hi Michael,

We've been looking  ltc on Windows as well. You can look at the "ltc-on-windows" branch on our fork here: https://github.com/hpcloud/lattice/tree/ltc-on-windows 
Password inputs work as they should as well as coloring and there's a workaround for refresh operations.

To compile on windows, a "godep restore" and a "go build" should suffice.

Cheers,
Vlad


-----Original Message-----
From: Michael Bechauf [mailto:[hidden email]]
Sent: Thursday, September 3, 2015 5:14 PM
To: [hidden email]
Subject: [cf-lattice] Need help compiling Lattice ltc

Hi there,

perhaps I was a bit foolish to try to get Lattice to run on Windows. I managed to bring up the Lattice Vagrant image, and was hoping to compile ltc for Windows, but get a number of errors. A few are obvious due to missing Unix syscalls, but the other ones were not. I then switched to a Vagrant Ubuntu compile, which resolves the syscall problems, but has others. I hope somebody can help me to get ltc/Lattice to work.

For right now, I tried to follow the instructions and did a "go get -d github.com/cloudfoundry-incubator/lattice/ltc". The compile eventually fails because ltc refers to docker/docker/nat which doesn't exist in the latest Docker release. I therefore check out the Docker branch 1.7.1 which is the latest branch with docker/docker/nat as opposed to docker/docker/pkg/nat. I also did a Docker compile to resolve the autogen errors.

This eventually led me to $GOPATH/src/github.com/cloudfoundry-incubator/lattice/ltc/scripts/install which leads to a number of very strange errors that I cannot resolve. Hope somebody can help:

# github.com/cloudfoundry-incubator/lattice/ltc/app_runner
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/app_runner/app_runner.go:339: cannot use setupAction (type *"github.com/cloudfoundry-incubator/runtime-schema
/models".SerialAction) as type *"github.com/cloudfoundry-incubator/bbs/models".Action in field value
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/app_runner/app_runner.go:359: cannot use "github.com/cloudfoundry-incubator/runtime-schema/models".ParallelAc
tion literal (type *"github.com/cloudfoundry-incubator/runtime-schema/models".ParallelAction) as type *"github.com/cloudfoundry-incubator/bbs/models".Action in field value # github.com/docker/docker/registry
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/docker/docker/registry/registry.go:189: undefined: v2.ErrorCodeUnauthorized # github.com/cloudfoundry-incubator/lattice/ltc/task_runner
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/task_runner/create_task_params.go:15: cannot use action (type "github.com/cloudfoundry-incubator/runtime-sche
ma/models".Action) as type *"github.com/cloudfoundry-incubator/bbs/models".Action in field value
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/task_runner/create_task_params.go:22: cannot use buildReceptorEnvironment(env) (type []receptor.EnvironmentVa
riable) as type []*"github.com/cloudfoundry-incubator/bbs/models".EnvironmentVariable in field value
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/task_runner/create_task_params.go:23: cannot use egressRules (type []"github.com/cloudfoundry-incubator/runti
me-schema/models".SecurityGroupRule) as type []*"github.com/cloudfoundry-incubator/bbs/models".SecurityGroupRule in field value vagrant@ubuntu-trusty-64:~/go/src/github.com/cloudfoundry-incubator/lattice/ltc/scripts$ go install github.com/cloudfou ndry-incubator/lattice/ltc # github.com/cloudfoundry-incubator/lattice/ltc/app_runner
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/app_runner/app_runner.go:339: cannot use setupAction (type *"github.com/cloudfoundry-incubator/runtime-schema
/models".SerialAction) as type *"github.com/cloudfoundry-incubator/bbs/models".Action in field value
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/app_runner/app_runner.go:359: cannot use "github.com/cloudfoundry-incubator/runtime-schema/models".ParallelAc
tion literal (type *"github.com/cloudfoundry-incubator/runtime-schema/models".ParallelAction) as type *"github.com/cloudfoundry-incubator/bbs/models".Action in field value # github.com/docker/docker/registry
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/docker/docker/registry/registry.go:189: undefined: v2.ErrorCodeUnauthorized # github.com/cloudfoundry-incubator/lattice/ltc/task_runner
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/task_runner/create_task_params.go:15: cannot use action (type "github.com/cloudfoundry-incubator/runtime-sche
ma/models".Action) as type *"github.com/cloudfoundry-incubator/bbs/models".Action in field value
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/task_runner/create_task_params.go:22: cannot use buildReceptorEnvironment(env) (type []receptor.EnvironmentVa
riable) as type []*"github.com/cloudfoundry-incubator/bbs/models".EnvironmentVariable in field value
/home/vagrant/.gvm/pkgsets/go1.4/global/src/github.com/cloudfoundry-incubator/lattice/ltc/task_runner/create_task_params.go:23: cannot use egressRules (type []"github.com/cloudfoundry-incubator/runti
me-schema/models".SecurityGroupRule) as type []*"github.com/cloudfoundry-incubator/bbs/models".SecurityGroupRule in field value
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[cf-lattice] Re: Re: Need help compiling Lattice ltc

Michael Bechauf
Hey Vlad,

thanks a lot - so far so good. Was able to compile ltc. I made a rookie Go mistake first by putting hpcloud/lattice in parallel to cloudfoundry-incubator/lattice, which obviously doesn't work since the imports still refer back to cloudfoundry-incubator. I then replaced the cloudfoundry-incubator/lattice with the ltc-on-windows branch of hpcloud/lattice, and that worked immediately.

Now on to actually trying lattice ...

Thanks,
Michael
Loading...