[Python] What should I do if "sudo /usr/share/bcc/tools/execsnoop" fails after build BCC from...

Discussão em 'Python' iniciado por Stack, Outubro 2, 2024.

  1. Stack

    Stack Membro Participativo

    After building BCC from source and running the test "sudo /usr/share/bcc/tools/execsnoop", I got the following output:

    Traceback (most recent call last): File "/usr/share/bcc/tools/execsnoop", line 21, in from bcc import BPF ImportError: No module named bcc

    What does this mean and what can be done to remedy it?

    After installing the dependencies, these are the steps that I followed:

    git clone https://github.com/iovisor/bcc.git
    mkdir bcc/build; cd bcc/build
    # python2 can be substituted here, depending on your environment
    cmake -DPYTHON_CMD=python3 ..
    make && sudo make install

    sudo /usr/share/bcc/tools/execsnoop #Test

    Continue reading...

Compartilhe esta Página