Rhel + Kernel头文件不在预期的位置-安装网络驱动程序时

问题描述

我们尝试在rhel服务器7.2版(内核-3.10.0-512)上安装网络驱动程序-i40e

如下

# tar zxf i40e-2.12.6.tar.gz
# cd i40e-2.12.6/src
# make install
common.mk:82: *** Kernel header files not in any of the expected locations.
common.mk:83: *** Install the appropriate kernel development package,e.g.
common.mk:84: *** kernel-devel,for building kernel modules and try again.  Stop.

在其他服务器(rhel 7.2)上,其成功安装如下(这是第二个make install,因此输出与第一次没有什么不同)

# cd src/
# make install
*** The target kernel has CONfig_MODULE_SIG_ALL enabled,but
*** the signing key cannot be found. Module signing has been
*** disabled for this build.
make[1]: Entering directory `/usr/src/kernels/3.10.0-327.el7.x86_64'
  Building modules,stage 2.
  MODPOST 1 modules
make[1]: Leaving directory `/usr/src/kernels/3.10.0-327.el7.x86_64'
Installing modules...
*** The target kernel has CONfig_MODULE_SIG_ALL enabled,but
*** the signing key cannot be found. Module signing has been
*** disabled for this build.
make[1]: Entering directory `/usr/src/kernels/3.10.0-327.el7.x86_64'
  INSTALL /tmp/i40e-2.12.6/src/i40e.ko
  DEPMOD  3.10.0-327.el7.x86_64
make[1]: Leaving directory `/usr/src/kernels/3.10.0-327.el7.x86_64'
/sbin/depmod -e -F /lib/modules/3.10.0-327.el7.x86_64/source/System.map  -a 3.10.0-327.el7.x86_64
Updating initramfs...
make mandocs_install
make[1]: Entering directory `/tmp/i40e-2.12.6/src'
copying manpages...
make[1]: Leaving directory `/tmp/i40e-2.12.6/src'

是什么原因?我们得到以下错误

common.mk:82: *** Kernel header files not in any of the expected locations.
common.mk:83: *** Install the appropriate kernel development package,for building kernel modules and try again.  Stop.

参考-https://downloadcenter.intel.com/download/24411/Intel-Network-Adapter-Driver-for-PCIe-40-Gigabit-Ethernet-Network-Connections-Under-Linux-

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)