blob: ddf925af32e821c9453bfcb47e7b55eae217e4d9 [file] [log] [blame]
Alexei Starovoitov0d056572015-06-09 20:36:56 -07001Q: while running 'make test' I'm seeing:
2 'ImportError: No module named pyroute2'
3A: Install pyroute2:
4 git clone https://github.com/svinota/pyroute2.git
5 cd pyroute2; sudo make install
6
7Q: hello_world.py fails with:
8 OSError: libbpfprog.so: cannot open shared object file: No such file or directory
9A: make sure to 'make install' and add the directory
10 where libbpfprog.so was installed into your LD_LIBRARY_PATH
11 export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
12
13Q: hello_world.py still fails with:
14 bpf: Operation not permitted
15 Exception: Failed to load BPF program hello
16A: sudo
Marco Leogrande35de0502015-06-11 14:39:13 -070017
18Q: How do I fulfill the Linux kernel version requirement?
19A: You need to obtain a recent version of the Linux source code
20 (please look at the README for the exact version), enable the
21 configuration options listed in the README file, install the image,
22 modules and headers, update your bootloader and reboot into the new
23 kernel.
24
25 If you want to compile your own kernel, you can fetch the sources
26 from kernel.org or through your Linux distribution.
27 To install, you need all of the following:
28 make install
29 make modules_install
30 make headers_install INSTALL_HDR_PATH=/usr/local/