CentOS 安装 无线USB网卡 RTL8192EU

Linux CentOS 安装 无线USB网卡 RTL8192EU

由于本人工作环境有代理防火墙,所有必须要使用无线连接自己的热点才能方便测试Linux CentOS。

查看USB设备我的无线网卡是TP-LINK ,网卡芯片是RTL8192EU

[root@localhost ~]# lsusb
...
Bus 003 Device 002: ID 0bda:818b Realtek Semiconductor Corp. RTL8192EU 802.11b/g/n WLAN Adapter
...

上传无线USB网卡驱动,驱动下载: https://download.csdn.net/download/jihuoma123/12256435

进入解压后的文件夹rtl8192EU-Centos7-master使用make 命令安装

出现以下提示安装成功!!!!

[root@localhost rtl8192EU-Centos7-master]# make
[root@localhost rtl8192EU-Centos7-master]# make install
install -p -m 644 8192eu.ko  /lib/modules/3.10.0-1062.el7.x86_64/kernel/drivers/net/wireless/
/sbin/depmod -a 3.10.0-1062.el7.x86_64

【安装失败解决方法】:

新装CentOS 直接安装驱动会出现报错,由于未安装GCC导致如下错误 :

[root@localhost Downloads]# cd rtl8192EU-Centos7-master/
[root@localhost rtl8192EU-Centos7-master]# make
/bin/sh: cc: command not found
(standard_in) 1: syntax error
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.10.0-1062.el7.x86_64/build M=/root/Downloads/rtl8192EU-Centos7-master  modules
make[1]: Entering directory `/usr/src/kernels/3.10.0-1062.el7.x86_64'
arch/x86/Makefile:96: stack-protector enabled but compiler support broken
arch/x86/Makefile:166: *** CONFIG_RETPOLINE=y, but not supported by the compiler. Compiler update recommended..  Stop.
make[1]: Leaving directory `/usr/src/kernels/3.10.0-1062.el7.x86_64'
make: *** [modules] Error 2

查看GCC,仅安装libgcc

[root@localhost rtl8192EU-Centos7-master]# rpm -qa|grep gcc
libgcc-4.8.5-39.el7.x86_64

可以查看此博客安装CentOS GCC: https://www.cnblogs.com/xiyushimei/p/8550930.html

以上仅为个人使用和安装过程中的经验。

发布了1 篇原创文章 · 获赞 1 · 访问量 6

猜你喜欢

转载自blog.csdn.net/jihuoma123/article/details/104970322
今日推荐