无法用yum安装wireless-tools
[root@localhost wireless_tools.29]# yum install -y wireless-tools
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
No package wireless-tools available.
Error: Nothing to do
算了,那就源代码安装吧
http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.29.tar.gz
解压之后make make install就完成了
既然安装完成了,那很自然就要测试一下
[root@localhost wireless_tools.29]# iwconfig
iwconfig: error while loading shared libraries: libiw.so.29: cannot open shared object file: No such file or directory
奇怪怎么找到不到libiw.so.29
仔细看了一些安装的过程,发现是有libiw.so.29
[root@localhost wireless_tools.29]# make install
install -m 755 -d /usr/local/lib/
install -m 755 libiw.so.29 /usr/local/lib/
ln -sfn libiw.so.29 /usr/local/lib//libiw.so
然后发现后面有一句
Don't forget to add /usr/local/lib/ to /etc/ld.so.conf, and run ldconfig as root
哦,明白了