make: ***/lib/modules/2.6.32-279.el6.x86_64/build: 没有这样的文件或目录.停止 [英] make: *** /lib/modules/2.6.32-279.el6.x86_64/build: No such file or directory. Stop
问题描述
我从他们的网站下载了 RALINK 驱动程序
I downloaded the RALINK driver from their web site
untar -xvf rtl*
然后我在其中运行make".谷歌搜索建议内核开发"需要安装.
and then i ran "make" in it. google search suggested "kernel-devel" needed to be installed.
我安装了 kernel-devel 包,但我仍然收到此错误
i installed the kernel-devel package but i still get this error
make: *** /lib/modules/2.6.32-279.el6.x86_64/build: No such file or directory. Stop.
当我检查该文件是否存在时..我 cd 进入/lib/modules/2.6.32-279.el6.x86_64/
when i check to see if that file exists.. i cd into /lib/modules/2.6.32-279.el6.x86_64/
我相信这个错误发生在make"命令尝试执行这个命令之后
i believe this error happens right after "make" command tries to execute this command
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/2.6.32-279.el6.x86_64/build M=/home/a/Desktop/3/rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20120405 modules
它在那里被称为构建"
那为什么它说没有这样的文件或目录?
so why is it saying no such file or directory ?
推荐答案
cd /lib/modules/2.6.32-431.el6.x86_64
sudo rm build
sudo ln -s ../../../usr/src/kernels/2.6.32-431.29.2.el6.x86_64/ build
以上命令为我解决了这个问题但基本上你必须能够在最后一个命令中使用任何版本的 2.6.32* 目录.
The above commands fixed the issue for me But basically you must be able to use any version of 2.6.32* directory in the last command.
这篇关于make: ***/lib/modules/2.6.32-279.el6.x86_64/build: 没有这样的文件或目录.停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!