Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build instructions #46

Closed
bobrik opened this issue Dec 2, 2014 · 3 comments
Closed

Build instructions #46

bobrik opened this issue Dec 2, 2014 · 3 comments

Comments

@bobrik
Copy link

bobrik commented Dec 2, 2014

After looking at #12 and #40 it seems obvious that build instructions are needed.

I personally got this:

# github.com/mesos/mesos-go/mesos
In file included from src/github.com/mesos/mesos-go/mesos/executor_driver.cpp:5:
In file included from /usr/local/include/mesos/executor.hpp:26:
In file included from /usr/local/include/mesos/mesos.hpp:22:
/usr/local/include/mesos/mesos.pb.h:17:2: error: This file was generated by an older version of protoc which is
/usr/local/include/mesos/mesos.pb.h:18:2: error: incompatible with your Protocol Buffer headers.  Please
/usr/local/include/mesos/mesos.pb.h:19:2: error: regenerate this file with a newer version of protoc.

And after installing mesos after protobuf (homebrew on mac) into this:

# github.com/mesos/mesos-go/mesos
In file included from src/github.com/mesos/mesos-go/mesos/executor_driver.cpp:5:
In file included from /usr/local/include/mesos/executor.hpp:26:
In file included from /usr/local/include/mesos/mesos.hpp:22:
/usr/local/include/mesos/mesos.pb.h:9:10: fatal error: 'google/protobuf/stubs/common.h' file not found

Real fix for the whole thing is moving away from linking to libmesos and using http api, like volt framework (https://github.com/VoltFramework/volt) does. Should I file an issue for that as well?

@jdef
Copy link
Contributor

jdef commented Dec 4, 2014

It's still undergoing development, but you could give the pure bindings a try (feedback welcome!):
https://github.com/mesos/mesos-go/tree/pure

@bobrik
Copy link
Author

bobrik commented Dec 5, 2014

@jdef yeah, I managed to find that branch myself when I tried to evaluate different options. This branch has outdated files from protobuf, so you can't start right away too. I can send you PR with regenerated versions if you like. influxdata/influxdb#811 the error is the same.

I was even able to create a framework that was doing some scheduling, even though it didn't work at first. mesos-go registers as 0.0.0.0:<some port> and mesos master cannot reach out 0.0.0.0, at least if framework and master are on different hosts. Did I miss something about it? Let me know if that's a bug, I can try to fix it.

You should definitely add a note on top of readme that pure branch exists and it's pretty usable.

@jdef
Copy link
Contributor

jdef commented Dec 6, 2014

Thanks for the info. The pure branch has recently merged with master.

--sent from my phone
On Dec 5, 2014 1:22 AM, "Ian Babrou" [email protected] wrote:

@jdef https://github.com/jdef yeah, I managed to find that branch
myself when I tried to evaluate different options. This branch has outdated
files from protobuf, so you can't start right away too. I can send you PR
with regenerated versions if you like. influxdata/influxdb#811
influxdata/influxdb#811 the error is the same.

I was even able to create a framework that was doing some scheduling, even
though it didn't work at first. mesos-go registers as 0.0.0.0:
and mesos master cannot reach out 0.0.0.0, at least if framework and
master are on different hosts. Did I miss something about it? Let me know
if that's a bug, I can try to fix it.

You should definitely add a note on top of readme that pure branch exists
and it's pretty usable.


Reply to this email directly or view it on GitHub
#46 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants