yum install chmsee
仍旧打不开是和firefox的库文件有关。到/etc/ld.so.conf加如一行:/usr/lib/firefox-2.0.0.10
保存后执行/sbin/ldconfig
chmlib-0.39-5.fc8.src.rpm、chmsee-1.0.0-1.25.fc8.src.rpm。
两个安装文件注意先后顺序先chmlib、后chmsee。
[root@localhost ~]# 运行chmsee 加载库文件失败
[root@localhost ~]# chmsee
/usr/libexec/chmsee/chmsee: error while loading shared libraries: libgtkembedmoz.so: cannot open shared object file: No such file or directory #错误提示
#如果少了某个库文件,我一般会尝试搜索电脑里是否已经有存在(个人习惯)
[root@localhost ~]# find / -name libgtkembedmoz.so
/usr/lib/firefox-2.0.0.10/libgtkembedmoz.so #在firefox中找到这个库文件。
[root@localhost ~]# vi /etc/ld.so.conf #编辑库文件配置文件,添加一行:/usr/lib/firefox-2.0.0.10
[root@localhost ~]# /sbin/ldconfig #使得对刚才的配置生效
[root@localhost ~]# chmsee #运行正常
这样的修改方式有一个缺点:当firefox-2.0.0.10 目录名称发生变化的时候(比如升级、或者删除了firefox),那么ld.so.conf配置文件中的“/usr/lib/firefox- 2.0.0.10”路径就失效了,也就意味着又无法找到libgtkembedmoz.so这个库了!所以我复制 libgtkembedmoz.so 到一个比较固定的lib库文件中,比如qt的lib库文件里(因为ld.so.conf配置文件里有指明qt库文件位置),这样就比较稳妥了很多。


shiwo110 于 2008-02-13 20:04:10发表:
支持一下,谢谢楼主
yourfriend 于 2008-02-12 09:51:15发表:
good!太好了。