iovisor / iovisor/bcc

After installing bcc, run the command and report an error

Open
#3,386 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

environment:
```bash
$ cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)

$ uname -r
4.11.1-1.el7.elrepo.x86_64

$ tcpconnect
Unable to find kernel headers. Try rebuilding kernel with CONFIG_IKHEADERS=m (module) or installing the kernel development package for your running kernel version.
chdir(/lib/modules/4.11.1-1.el7.elrepo.x86_64/build): No such file or directory
Traceback (most recent call last): File "/usr/share/bcc/tools/tcpconnect", line 301, in b = BPF(text=bpf_text) File "/usr/lib/python2.7/site-packages/bcc/__init__.py", line 358, in __init__ raise Exception("Failed to compile BPF module %s" % (src_file or ""))Exception: Failed to compile BPF module

$ ls -l /usr/src/kernels/
drwxr-xr-x 22 root root 4096 Apr 28 23:22 3.10.0-1127.18.2.el7.x86_64
drwxr-xr-x 23 root root 4096 Apr 27 18:18 4.11.1-1.el7.elrepo.x86_64

$ ls /lib/modules
```

i cannot found `4.11.1-1.el7.elrepo.x86_64` source

Any suggestions

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.