Make 不起作用

Make 不起作用

我使用名为 的网卡rtl8723be。在 Ubuntu 中,该卡每隔十到二十分钟就会随机停止一次,而我的网络管理器却检测不到它。有一个解决方案。一个叫 lwfinger 的人在 github 上放了一些驱动程序,它们工作得很好。不幸的是,我最近切换到 Kubuntu 14.04,当我尝试制作驱动程序时,我收到此错误代码:

make -C /lib/modules/4.2.0-27-generic/build M=/home/liam/rtlwifi_new modules make[1]: Entering directory /usr/src/linux-headers-4.2.0-27-generic'
arch/x86/Makefile:123: stack-protector enabled but compiler support broken
arch/x86/Makefile:138: CONFIG_X86_X32 enabled but no binutils support
Makefile:662: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
make[1]: gcc: Command not found
  CC [M]  /home/liam/rtlwifi_new/base.o
/bin/sh: 1: gcc: not found
make[2]: *** [/home/liam/rtlwifi_new/base.o] Error 127
make[1]: *** [_module_/home/liam/rtlwifi_new] Error 2
make[1]: Leaving directory/usr/src/linux-headers-4.2.0-27-generic' make: * [all] Error 2 make -C /lib/modules/4.2.0-27-generic/build M=/home/liam/rtlwifi_new modules make[1]: Entering directory /usr/src/linux-headers-4.2.0-27-generic'
arch/x86/Makefile:123: stack-protector enabled but compiler support broken
arch/x86/Makefile:138: CONFIG_X86_X32 enabled but no binutils support
Makefile:662: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
make[1]: gcc: Command not found
  CC [M]  /home/liam/rtlwifi_new/base.o
/bin/sh: 1: gcc: not found
make[2]: *** [/home/liam/rtlwifi_new/base.o] Error 127
make[1]: *** [_module_/home/liam/rtlwifi_new] Error 2
make[1]: Leaving directory/usr/src/linux-headers-4.2.0-27-generic' make: * [all] Error 2

如果您知道解决方案,请告诉我

答案1

您缺少 Gnu 编译器集合。它可以与其他必要的构建工具一起通过元包安装build-essential

sudo apt-get install build-essential

相关内容