安装wireless_tools.27.tar.gz 出现错
我安装wireless_tools.27.tar.gz 出现问题,iwconfig --version总是说iwconfig: error while loading shared libraries: libiw.so.27: cannot open shared我看过install,检查过我有目录/usr/local/sbin
这里是过程
# 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下:
# ls /usr/local/lib
ld.so.conflibiw.solibiw.so.27
# ldconfig //我是root登陆
# 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"
没有起作用,就决定手动再链接一次
# ln -sfn /usr/local/lib/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. ***这句话理解错了,应该是用vi打开/etc/ld.so.conf,然后把目录/usr/local/lib加进去就可以了 :D
页:
[1]