Commit a5c3c707 authored by Brenden Blanco's avatar Brenden Blanco

Merge pull request #53 from iovisor/yhs_dev

Yhs dev
parents c989d1ab 66695702
......@@ -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
......
......@@ -67,7 +67,7 @@ cd bcc; mkdir build; cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=/opt/local/llvm
make -j$(grep -c ^processor /proc/cpuinfo)
sudo make install
cd ../../
cd ../
sudo python examples/hello_world.py
<ctrl-C>
```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment