简体   繁体   English

Arch Linux:make-没有此类文件或目录

[英]Arch Linux: make - no such file or directory

I have a problem by compiling a driver (WLAN-dongle Edimax ac600). 我通过编译驱动程序(WLAN-dongle Edimax ac600)遇到问题。

I´m using an Archlinux on my raspberry-pi and want to install my dongle for 5Ghz. 我在raspberry-pi上使用Archlinux,并想为5Ghz安装我的加密狗。 During comiling the driver I get this message. 在编译驱动程序期间,我收到此消息。 I tried to install the linux-headers without success. 我试图安装linux-headers失败。 (in other threads it will be a solution) (在其他线程中,这将是一个解决方案)

Here is my output of make : 这是我的make输出:

[root@raspberry_pi_1 rtl8812AU]# make make ARCH=arm CROSS_COMPILE= -C
/lib/modules/4.9.43-1-ARCH/build M=/root/rtl8812AU  modules make[1]:
 *** /lib/modules/4.9.43-1-ARCH/build: No such file or directory.  Stop. make: *** [Makefile:1576: modules] Error 2

I found out that my pi has a two-arch...-directories: 我发现我的pi有两个拱形的...目录:

4.9.43-1-ARCH/
4.9.51-1-ARCH/

Only the second one has the build directory... 只有第二个具有构建目录...

How can I fix the problem?! 我该如何解决该问题?

thanks a lot, a Linux noob... 非常感谢,Linux新手...

[Reputation is too low to post comment] [声誉太低,无法发表评论]

Use uname -r to make sure which version of the kernel you use. 使用uname -r来确保使用哪个版本的内核。

If it's 4.9.43 : you have newer version of the kernel and this confuse your installer. 如果是4.9.43 :您具有较新的内核版本,这会使您的安装程序4.9.43困惑。 You should reboot on the 51 one 你应该重启51

If it's 4.9.51 : You messed up your installation step and are trying to compile for an old target. 如果是4.9.51 :您弄乱了安装步骤,并尝试为旧目标进行编译。 You should review the compilation process and change every mention of the 4.9.43 to 4.9.51 since it's the version you use. 您应该检查编译过程,并将4.9.43每个提及更改为4.9.51因为它是您使用的版本。

If you upgrade your kernel, you may have to rebuild the thing again (You may like to have script in the future ;) ) with the new kernel version. 如果您升级内核,则可能必须使用新的内核版本重新构建它(您将来可能希望拥有脚本;)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM