|
我安装wireless_tools.27.tar.gz 出现问题,iwconfig --version总是说iwconfig: error while loading shared libraries: libiw.so.27: cannot open shared
我看过install,检查过我有目录/usr/local/sbin
这里是过程
[root@localhost wireless_tools.27]# make install
install -m 755 -d /usr/local/lib/
install -m 755 libiw.so.27 /usr/local/lib/
ln -sfn libiw.so.27 /usr/local/lib//libiw.so
*** Don't forget to add /usr/local/lib/ to /etc/ld.so.conf, and run ldconfig as root. ***
install -m 755 -d /usr/local/sbin/
install -m 755 iwconfig iwlist iwpriv iwspy iwgetid iwevent ifrename /usr/local/sbin/
install -m 755 -d /usr/local/include/
install -m 644 iwlib.h /usr/local/include/
install -m 644 wireless.h /usr/local/include/
install -m 755 -d /usr/local/man//man8/
install -m 644 iwconfig.8 iwlist.8 iwpriv.8 iwspy.8 iwgetid.8 iwevent.8 ifrename.8 /usr/local/man//man8/
install -m 755 -d /usr/local/man//man7/
install -m 644 wireless.7 /usr/local/man//man7/
install -m 755 -d /usr/local/man//man5/
install -m 644 iftab.5 /usr/local/man//man5/
我注意到*** Don't forget to add /usr/local/lib/ to /etc/ld.so.conf, and run ldconfig as root. ***
我就复制了ld.so.conf 到/usr/local/lib下:
[root@localhost wireless_tools.27]# ls /usr/local/lib
ld.so.conf libiw.so libiw.so.27
[root@localhost wireless_tools.27]# ldconfig //我是root登陆
[root@localhost wireless_tools.27]# iwconfig --V
iwconfig: error while loading shared libraries: libiw.so.27: cannot open shared
object file: No such file or directory
我猜测是make install的时候
"ln -sfn libiw.so.27 /usr/local/lib//libiw.so"
没有起作用,就决定手动再链接一次
[root@localhost wireless_tools.27]# ln -sfn /usr/local/lib/libiw.so.27 /usr/local/lib/libiw.so
但问题依旧,有那位知道该怎么解决,非常感谢 |
|