![构建无线驱动程序的 Linux 模块时出错](https://linux22.com/image/37850/%E6%9E%84%E5%BB%BA%E6%97%A0%E7%BA%BF%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E7%9A%84%20Linux%20%E6%A8%A1%E5%9D%97%E6%97%B6%E5%87%BA%E9%94%99.png)
我最近在我的一台旧计算机上安装了 Debian Wheezy 来测试它并更加熟悉 Unix。令我惊讶的是,到目前为止我非常喜欢这个界面,但我遇到了一个问题:
当我去安装无线驱动程序时,我在输入时收到错误make
。我已经安装了build-essential
和linux-headers
软件包,但仍然遇到问题。我的终端看起来像
root@debian:/Wireless-Driver/rtl8192u_linux_2.6.0006.1031.2008# make
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-4-686-pae'
CC [M] /Wireless-Driver/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_rx.o
In file included from /Wireless-river/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_rx.c:46:0:
/Wireless-Driver/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211.h:2107:24: error: field ‘ps_task’ has incomplete type
make[4]: *** [/Wireless-Driver/rtl8192u_linux_2.6.0006.1031.2008/ieee80211/ieee80211_rx.o] Error 1
make[3]: *** [_module_/Wireless-Driver/rtl8192u_linux_2.6.0006.1031.2008/ieee80211] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-4-686-pae'
make: *** [all] Error 2
提前对可怕的风格表示歉意。我的无线适配器是 D'link DWA 130C