make: *** /lib/modules/2.6.32-431.el6.x86_64/build/: No such file or directory. Stop.
Centos 6.5上编译MCS9922的驱动(MCS99xx_LINUX_Driver_v2.2.0_Source.tar.bz2)时,出现如下错误:
======ERROR=======
[root@localhost MCS99xx_LINUX_Driver_v2.2.0_Source]# make
rm -f *.mod.c *.o *.ko .*.cmd *.symvers
make -C /lib/modules/2.6.32-431.el6.x86_64/build/ SUBDIRS=/root/MCS99xx_LINUX_Driver_v2.2.0_Source modules
make: *** /lib/modules/2.6.32-431.el6.x86_64/build/: No such file or directory. Stop.
make: *** [default] Error 2
[root@localhost MCS99xx_LINUX_Driver_v2.2.0_Source]#
======END=========
这个问题应该是系统没有安装内核开发包,可以看下/usr/src/kernels/,
如果这个目录是空的,就说明没有安装 内核开发包,yum install kernel-devel
如果这个目录非空,你就需要重新做一下连接 :
[root@localhost ~]# cd /lib/modules/2.6.32-431.el6.x86_64
[root@localhost 2.6.32-431.el6.x86_64]# ln -s ../../../usr/src/kernels/2.6.32-431.el6.x86_64/build
然后重新执行 make &make install 就可以了。
make: *** /lib/modules/2.6.32-431.el6.x86_64/build/: No such file or directory. Stop.
======ERROR=======
[root@localhost MCS99xx_LINUX_Driver_v2.2.0_Source]# make
rm -f *.mod.c *.o *.ko .*.cmd *.symvers
make -C /lib/modules/2.6.32-431.el6.x86_64/build/ SUBDIRS=/root/MCS99xx_LINUX_Driver_v2.2.0_Source modules
make: *** /lib/modules/2.6.32-431.el6.x86_64/build/: No such file or directory. Stop.
make: *** [default] Error 2
======END=========
这个问题应该是系统没有安装内核开发包,可以看下/usr/src/kernels/,
如果这个目录是空的,就说明没有安装 内核开发包,yum install kernel-devel
如果这个目录非空,你就需要重新做一下连接 :
[root@localhost ~]# cd /lib/modules/2.6.32-431.el6.x86_64
[root@localhost 2.6.32-431.el6.x86_64]# ln -s ../../../usr/src/kernels/2.6.32-431.el6.x86_64/build
然后重新执行 make &make install 就可以了。