update development environment

This commit is contained in:
2023-09-26 12:04:34 +08:00
parent 8319762c00
commit b1a8679437
5 changed files with 134 additions and 0 deletions

16
devenv/el/7/README.md Normal file
View File

@ -0,0 +1,16 @@
# 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`