1.安装Perl.

2.如果提示

The path "" is not a valid path to the 3.10.0-229.el7.x86_64 kernel headers.
Would you like to change it? [yes]

运行

yum remove kernal-headers

把原有的kernal-headers卸载掉,需要注意的是yum可能同时会把gcc的部分包也一同卸载掉,这时再次安装gcc

3.安装gcc.

yum install gcc

接着安装kernel-headers-3.10.0-229.el7.x86_64.rpm和kernel-devel-3.10.0-229.el7.x86_64.rpm

如果不能找到相应版本的header,可以运行yum install "kernel-devel-uname-r == $(uname -r)"自动搜索对应的内核header自行安装

相关文章:

  • 2021-11-27
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
猜你喜欢
  • 2021-07-06
  • 2021-10-14
  • 2022-01-26
  • 2021-04-26
  • 2021-11-09
  • 2022-01-02
  • 2022-02-02
相关资源
相似解决方案