docker_env icon indicating copy to clipboard operation
docker_env copied to clipboard

我在rhel8 容器中编译报这个错,该怎么解决呢?

Open fu7100 opened this issue 3 years ago • 1 comments

[root@187d368498b4 lkm_example]# make make -C /lib/modules/4.18.0-193.el8.x86_64/build M=/root/src/lkm_example modules make[1]: Entering directory '/usr/lib/modules/4.18.0-193.el8.x86_64/build' make[1]: *** No rule to make target 'modules'. Stop. make[1]: Leaving directory '/usr/lib/modules/4.18.0-193.el8.x86_64/build' make: *** [Makefile:3: all] Error 2

fu7100 avatar Jul 06 '22 04:07 fu7100

我这里在rhel8上测试,正常的。容器里面 kernel-core-$(uname -r) 装了吗?

wangzheng422 avatar Jul 06 '22 05:07 wangzheng422