QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1446|回复: 1

安装wireless_tools.27.tar.gz 出现错

[复制链接]
发表于 2006-2-17 21:11:06 | 显示全部楼层 |阅读模式
我安装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
但问题依旧,有那位知道该怎么解决,非常感谢
 楼主| 发表于 2006-2-17 23:06:55 | 显示全部楼层

找到答案了

*** 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
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 16:29 , Processed in 0.043736 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表