Linux下安装网卡执行make install失败
先安装的SuSE12系统,没有网卡驱动,试着自己安装
在网上下载了tar安装包,加压后执行make编译,出现如下错误:
[/usr/src/e1000e-1.9.5/src]# make
Makefile:71: *** Kernel header files not in any of the expected locations.
Makefile:72: *** Install the appropriate kernel development package, e.g.
Makefile:73: *** kernel-devel, for building kernel modules and try again。 停止。
[/usr/src/e1000e-1.9.5/src]# make install
Makefile:71: *** Kernel header files not in any of the expected locations.
Makefile:72: *** Install the appropriate kernel development package, e.g.
Makefile:73: *** kernel-devel, for building kernel modules and try again。 停止。
从错误信息来看是没装kernel header files,在网上搜到了如下解决方法:
将之前的系统安装盘放入光驱,终端执行此命令zypper in kernel-source,安装ok~