> On Mar 22, 2016, at 6:21 AM, Jay Guo <[email protected]> wrote:
>
> Hi,
>
> I got error trying to compile Mesos
> on Ubuntu
> with CFLAG WITH_NETWORK_ISOLATOR
>
> Here's what I did:
> 1. apt-get install libnl-dev
> 2. ./bootstrap
> 3. mkdir build && cd build
> 4. CXXFLAGS=-DWITH_NETWORK_ISOLATOR ../configure --disable-java
> --disable-python
You should do:
../configure --disable-java --disable-python --with-network-isolator
This will check for the dependencies correctly and enable the right build
components.
> 5. make check
>
> Although I got following error:
>
> In file included from ../../src/linux/routing/filter/ip.hpp:35:0,
> from
> ../../src/slave/containerizer/mesos/isolators/network/port_mapping.hpp:44,
> from
> ../../src/slave/containerizer/mesos/containerizer.cpp:82:
> ../../src/linux/routing/handle.hpp:92:39: error: ‘TC_H_ROOT’ was not
> declared in this scope
> constexpr Handle EGRESS_ROOT = Handle(TC_H_ROOT);
> ^
> ../../src/linux/routing/handle.hpp:93:40: error: ‘TC_H_INGRESS’ was not
> declared in this scope
> constexpr Handle INGRESS_ROOT = Handle(TC_H_INGRESS);
>
> Any ideas?
>
> Also, does this work with OSX? Is there any equivalent library as libnl?
>
> Cheers,
> /J