Skip to content

Commit

Permalink
Add an FAQ entry to provide workaround for potential bpf pkg installa…
Browse files Browse the repository at this point in the history
…tion problem.

Signed-off-by: Yonghong Song <[email protected]>
  • Loading branch information
yonghong-song committed Jun 11, 2015
1 parent b25d3b8 commit 6669570
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions FAQ.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ A: make sure to 'make install' and add the directory
where libbpfprog.so was installed into your LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

Q: hello_world.py fails with:
ImportError: No module named bpf
A: checkout "sudo make install" output to find out bpf package installation site,
add it to the PYTHONPATH env variable before running the program.
sudo bash -c 'PYTHONPATH=/usr/lib/python2.7/site-packages python examples/hello_world.py'

Q: hello_world.py still fails with:
bpf: Operation not permitted
Exception: Failed to load BPF program hello
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ sudo python examples/hello_world.py
```

Change `CMAKE_PREFIX_PATH` if llvm is installed elsewhere.
Change CMAKE_INSTALL_PREFIX to /usr/local if your python package installation
is under /usr/local install /usr.

### Cleaning up

Expand Down

0 comments on commit 6669570

Please sign in to comment.