Hi, Problem solved, thanks guys.
Just for future reference, here's a summary of what should be done to enable --network-isolator 1. Make sure kernel version is >= 3.15 or apply proper patches 2. Install libnl with version >= 3.2.26, make sure headers are installed into /usr/include (using --prefix when configure) instead of ubuntu default /usr/local/include 3. Make sure you are linking against correct shared library in /usr/lib, instead of /lib/ (ldd libmesos.so could help). export LD_LIBRARY_PATH=/usr/lib 4. Use --with-network-isolator instead of CXXFLAGS env. (just good practice, both should work) P.S. I do think OSX comes with network capability, just not devel. Thoughts? cheers, /J On Wed, Mar 23, 2016 at 6:15 AM, James Peach <[email protected]> wrote: > > > 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 > >
