Alexei Starovoitov | 0d05657 | 2015-06-09 20:36:56 -0700 | [diff] [blame] | 1 | Q: while running 'make test' I'm seeing: |
| 2 | 'ImportError: No module named pyroute2' |
| 3 | A: Install pyroute2: |
| 4 | git clone https://github.com/svinota/pyroute2.git |
| 5 | cd pyroute2; sudo make install |
| 6 | |
| 7 | Q: hello_world.py fails with: |
| 8 | OSError: libbpfprog.so: cannot open shared object file: No such file or directory |
| 9 | A: 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 | |
Yonghong Song | 6669570 | 2015-06-11 15:38:24 -0700 | [diff] [blame] | 13 | Q: hello_world.py fails with: |
| 14 | ImportError: No module named bpf |
| 15 | A: checkout "sudo make install" output to find out bpf package installation site, |
| 16 | add it to the PYTHONPATH env variable before running the program. |
| 17 | sudo bash -c 'PYTHONPATH=/usr/lib/python2.7/site-packages python examples/hello_world.py' |
| 18 | |
Alexei Starovoitov | 0d05657 | 2015-06-09 20:36:56 -0700 | [diff] [blame] | 19 | Q: hello_world.py still fails with: |
| 20 | bpf: Operation not permitted |
| 21 | Exception: Failed to load BPF program hello |
| 22 | A: sudo |
Marco Leogrande | 35de050 | 2015-06-11 14:39:13 -0700 | [diff] [blame] | 23 | |
| 24 | Q: How do I fulfill the Linux kernel version requirement? |
| 25 | A: You need to obtain a recent version of the Linux source code |
| 26 | (please look at the README for the exact version), enable the |
| 27 | configuration options listed in the README file, install the image, |
| 28 | modules and headers, update your bootloader and reboot into the new |
| 29 | kernel. |
| 30 | |
| 31 | If you want to compile your own kernel, you can fetch the sources |
| 32 | from kernel.org or through your Linux distribution. |
| 33 | To install, you need all of the following: |
| 34 | make install |
| 35 | make modules_install |
| 36 | make headers_install INSTALL_HDR_PATH=/usr/local/ |
Alexei Starovoitov | cf35811 | 2015-06-17 12:55:42 -0700 | [diff] [blame] | 37 | |
| 38 | Q: hello_world.py fails with: |
| 39 | ImportError: No module named past.builtins |
| 40 | A: sudo pip install future |