Thanks Kapil.

I am now following the steps in https://github.com/mesos/modules to build
my module, but it failed:
stack@u1404u1:~/mesos/build$ ../configure --with-glog=/usr/local
--with-protobuf=/usr/local --with-boost=/usr/local
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
...
checking for /usr/share/java/protobuf.jar... no
configure: error: cannot find PROTOBUF_JAR=/usr/share/java/protobuf.jar

And I have already installed protobuf, glog and boost libraries in my
machine with the command:
sudo apt-get install libprotobuf-dev libboost-dev libgoogle-glog-dev

Can you please help? Thanks!


Regards,
Qian Zhang



From:   Kapil Arya <[email protected]>
To:     dev <[email protected]>
Date:   09/17/2015 21:50
Subject:        Re: Failed to build Mesos module



Hello Qian,

Please follow the instructions on https://github.com/mesos/modules to get
up and running with building a mesos module. Apparently, building mesos
modules requires you to build Mesos without bundled protobuf, glog and
boost libraries. Thus, you need to have them installed system wide. The
above repo has a readme and a few test modules that you can play with.

Please let us know if you need any more help.

Kapil

On Thu, Sep 17, 2015 at 9:20 AM, Qian AZ Zhang <[email protected]> wrote:

>
>
> Hi all,
>
> I am trying to follow the doc (
>
>
https://github.com/apache/mesos/blob/master/docs/modules.md#writing-mesos-modules

> ) to implement a test module, but when I built the module, I got the
> following error:
>     user1@test1:~/mesos/src/examples$ g++ -lmesos -fpic -o test_module.o
> test_module.cpp
>     In file included from /usr/local/include/mesos/mesos.hpp:22:0,
>                      from test_module.hpp:22,
>                      from test_module.cpp:2:
>     /usr/local/include/mesos/mesos.pb.h:9:42: fatal error:
> google/protobuf/stubs/common.h: No such file or directory
>      #include <google/protobuf/stubs/common.h>
> ^
>     compilation terminated.
>
> It seems it can not find the header file: google/protobuf/stubs/common.h.
I
> see this header file is in the Mesos source code tree, but not in
> /usr/local/include/mesos ( I have done "make install" after building
Mesos
> source code).
>
> Any help will be appreciated, thanks!
>
>
> Regards,
> Qian Zhang

Reply via email to