当我尝试安装从 Realtek 下载的 RTL8188CUS 驱动程序(使用他们的 install.sh shell 脚本)时,我在 11.04 中使用单独的命令 make 等安装了驱动程序,并且工作正常,但是现在使用单独的命令会出现相同的错误。11.10 有什么变化???
sudo bash install.sh
Run Code Online (Sandbox Code Playgroud)
...一切顺利,直到出现错误消息
Authentication requested [root] for make driver: make ARCH=i386
CROSS_COMPILE= -C /lib/modules/3.0.0-12-generic/build
M=/home/karl/rtl8188cus/driver/rtl8192_8188CU_linux_v3.1.2590.20110922
modules make[1]: Entering directory
`/usr/src/linux-headers-3.0.0-12-generic' CC [M]
/home/karl/rtl8188cus/driver/rtl8192_8188CU_linux_v3.1.2590.20110922/core/rtw_cmd.o
In file included from
/home/karl/rtl8188cus/driver/rtl8192_8188CU_linux_v3.1.2590.20110922/core/rtw_cmd.c:24:0:
/home/karl/rtl8188cus/driver/rtl8192_8188CU_linux_v3.1.2590.20110922/include/osdep_service.h:49:29:
fatal error: linux/smp_lock.h: No such file or directory compilation
terminated. make[2]: ***
[/home/karl/rtl8188cus/driver/rtl8192_8188CU_linux_v3.1.2590.20110922/core/rtw_cmd.o]
Error 1 make[1]: ***
[_module_/home/karl/rtl8188cus/driver/rtl8192_8188CU_linux_v3.1.2590.20110922] Error 2 make[1]: Leaving directory
`/usr/src/linux-headers-3.0.0-12-generic' make: *** [modules] Error 2
Compile make driver error: 2, Please check error …Run Code Online (Sandbox Code Playgroud)