ebpf-demo/devenv/el/7/README.md

17 lines
455 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# CentOS 7 的开发环境
## 要注意的地方
尽量不要用这个,坑太多了。
如果非要用,有几个地方要注意
- 更新内核,使用 elrepo 的 kernel-lt 或者更新的主线内核 kernel-ml
- 使用 scl 的 llvm-toolset-7 的 clang
- 无法使用 btf
## 换个思路用 nix flake
- 内核用 elrepo 的 kernel-lt 或者 kernel-ml安装完以后重启
- sh <(curl -L https://nixos.org/nix/install) --daemon
- `nix develop`