osrg / bgperf

Apache License 2.0
86 stars 30 forks source link

Could not run on FreeBSD #2

Open pavel-odintsov opened 8 years ago

pavel-odintsov commented 8 years ago

Hello, folks!

I would like to use toolkit on FreeBSD but I could not start it:

./bgperf.py --help
Traceback (most recent call last):
  File "./bgperf.py", line 30, in <module>
    from nsenter import Namespace
  File "/usr/local/lib/python2.7/site-packages/nsenter/__init__.py", line 21, in <module>
    class Namespace(object):
  File "/usr/local/lib/python2.7/site-packages/nsenter/__init__.py", line 52, in Namespace
    _libc = ctypes.CDLL('libc.so.6', use_errno=True)
  File "/usr/local/lib/python2.7/ctypes/__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: Shared object "libc.so.6" not found, required by "python"

Unfortunately, we haven't nsenter and cgroups at FreeBSD. Could you offer workaround for this case?