红旗 Linux Desktop5.0 安装Firefox2.0时报错
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-05-03
红旗 Linux Desktop5.0 安装Firefox2.0时报错:"libgobject-2.0.so.0" not found
红旗 Linux Desktop5.0 安装Firefox的出现了"libgobject-2.0.so.0" not found(KDE环境) 提示:./firefox-bin: error while loading shared libraries: libgobject-2.0.so.0 安装方法: 从:官司方网站下载firefox2.0 解压到目录/root/firefox? (如何解压,请参考本博其它文章) 进入该目录[root@localhost firefox]# ldd firefox-bin ?linux-gate.so.1 => (0xffffe000) ?libmozjs.so => not found ?libxpcom.so => not found ?libxpcom_core.so => not found ?libplds4.so => not found ?libplc4.so => not found ?libnspr4.so => not found ?libpthread.so.0 => /lib/libpthread.so.0 (0xb7ecd000) ?libdl.so.2 => /lib/libdl.so.2 (0xb7ec8000) ?libgtk-x11-2.0.so.0 => /opt/gtk/lib/libgtk-x11-2.0.so.0 (0xb7b64000) ?libgdk-x11-2.0.so.0 => /opt/gtk/lib/libgdk-x11-2.0.so.0 (0xb7add000) ?libatk-1.0.so.0 => /opt/gtk/lib/libatk-1.0.so.0 (0xb7ac3000) ?libgdk_pixbuf-2.0.so.0 => /opt/gtk/lib/libgdk_pixbuf-2.0.so.0 (0xb7aae000) ?libpangoxft-1.0.so.0 => /opt/gtk/lib/libpangoxft-1.0.so.0 (0xb7aa7000) ?libpangox-1.0.so.0 => /opt/gtk/lib/libpangox-1.0.so.0 (0xb7a9c000) ?libpango-1.0.so.0 => /opt/gtk/lib/libpango-1.0.so.0 (0xb7a63000) ?libgobject-2.0.so.0 => /opt/gtk/lib/libgobject-2.0.so.0 (0xb7a2c000) ?libgmodule-2.0.so.0 => /opt/gtk/lib/libgmodule-2.0.so.0 (0xb7a29000) ?libglib-2.0.so.0 => /opt/gtk/lib/libglib-2.0.so.0 (0xb7968000) ?libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb7882000) ?libgthread-2.0.so.0 => /opt/gtk/lib/libgthread-2.0.so.0 (0xb787e000) ?libm.so.6 => /lib/libm.so.6 (0xb7856000) ?libsmime3.so => not found ?libssl3.so => not found ?libnss3.so => not found ?libsoftokn3.so => not found ?libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0xb784c000) ?libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb77ef000) ?libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb777c000) ?libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0xb7729000) ?libXft.so.2 => /usr/lib/libXft.so.2 (0xb7717000) ?libxpcom_compat.so => not found ?libstdc .so.5 => /usr/lib/libstdc .so.5 (0xb765d000) ?libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7655000) ?libc.so.6 => /lib/libc.so.6 (0xb74fc000) ?/lib/ld-linux.so.2 (0xb7eff000) ?libgio-2.0.so.0 => /opt/gtk/lib/libgio-2.0.so.0 (0xb74a4000) ?libpangocairo-1.0.so.0 => /opt/gtk/lib/libpangocairo-1.0.so.0 (0xb749b000) ?libXcomposite.so.1 => /usr/X11R6/lib/libXcomposite.so.1 (0xb7497000) ?libXdamage.so.1 => /usr/X11R6/lib/libXdamage.so.1 (0xb7494000) ?libXfixes.so.3 => /usr/X11R6/lib/libXfixes.so.3 (0xb748f000) ?libcairo.so.2 => /opt/gtk/lib/libcairo.so.2 (0xb742e000) ?libz.so.1 => /usr/lib/libz.so.1 (0xb741d000) ?libpng12.so.0 => /opt/gtk/lib/libpng12.so.0 (0xb73fd000) ?libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb73ee000) ?libpixman-1.so.0 => /opt/gtk/lib/libpixman-1.so.0 (0xb73a6000) ?libXcursor.so.1 => /usr/X11R6/lib/libXcursor.so.1 (0xb739d000) ?libpangoft2-1.0.so.0 => /opt/gtk/lib/libpangoft2-1.0.so.0 (0xb72c3000) ?librt.so.1 => /lib/librt.so.1 (0xb72b9000) ?libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb729a000) ?libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0xb7291000) ?libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0xb7279000)以上是缺少一些动态库 ./TestGtkEmbed ./TestGtkEmbed: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory 查看动态库 ldd TestGtkEmbed ? ?linux-gate.so.1 => (0xffffe000) ?libgtkembedmoz.so => /usr/lib/libgtkembedmoz.so (0xb7eeb000) ?libX11.so.6 => /usr/lib/libX11.so.6 (0xb7dfa000) ?libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7df5000) ?libmozjs.so => not found ?libxpcom.so => not found ?libxpcom_core.so => not found ?libplds4.so => /usr/lib/libplds4.so (0xb7df2000) ?libplc4.so => /usr/lib/libplc4.so (0xb7dec000) ?libnspr4.so => /usr/lib/libnspr4.so (0xb7dba000) 设置库的加载路径(具体方法及原因可查本博其他文章) export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/brightman/workspace/mozilla/dist/lib ?? 设好路径后: ?[root@localhost firefox]# ldd firefox-bin ?linux-gate.so.1 => (0xffffe000) ?libmozjs.so (0xb7eb5000) ?libxpcom.so (0xb7eb2000) ?libxpcom_core.so (0xb7e08000) ?libplds4.so (0xb7e05000) ?libplc4.so (0xb7e01000) ?libnspr4.so (0xb7dd3000) ?libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7da9000) ?libdl.so.2 => /lib/libdl.so.2 (0xb7da5000) ?libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7acb000) ?libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb7a4d000) ?libatk-1.0.so.0 => /opt/gtk/lib/libatk-1.0.so.0 (0xb7a35000) ?libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb7a1f000) ?libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0xb7a18000) ?libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0xb7a0d000) ?libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb79d4000) ?"libgobject-2.0.so.0" not found ?libgmodule-2.0.so.0 => /opt/gtk/lib/libgmodule-2.0.so.0 (0xb799c000) ?libglib-2.0.so.0 => /opt/gtk/lib/libglib-2.0.so.0 (0xb7913000) ?libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb782d000) ?libgthread-2.0.so.0 => /opt/gtk/lib/libgthread-2.0.so.0 (0xb7829000) ?libm.so.6 => /lib/tls/libm.so.6 (0xb7806000) ?libsmime3.so (0xb77e5000) ?libssl3.so (0xb77be000) ?libnss3.so (0xb7756000) ?libsoftokn3.so (0xb770a000) ?libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0xb7701000) ?libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb76a5000) ?libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7632000) ?libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0xb75de000) ?libXft.so.2 => /usr/lib/libXft.so.2 (0xb75cc000) ?libxpcom_compat.so (0xb75b5000) ?libstdc .so.5 => /usr/lib/libstdc .so.5 (0xb74fc000) ?libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb74f4000) ?libc.so.6 => /lib/tls/libc.so.6 (0xb73cb000) ?/lib/ld-linux.so.2 (0xb7f51000) ?libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0xb73c6000) ?libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0xb73be000) ?libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0xb73bb000) ?libz.so.1 => /usr/lib/libz.so.1 (0xb73aa000) ?libXfixes.so.3 => /usr/X11R6/lib/libXfixes.so.3 (0xb73a5000) ?libXcursor.so.1 => /usr/X11R6/lib/libXcursor.so.1 (0xb739b000) ?libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb738d000) ?libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb7367000) ?libexpat.so.0 => /usr/lib/libexpat.so.0 (0xb7348000) ?libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0xb733e000) ?libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0xb7326000) [root@localhost firefox]# 安装这个包即可:glib2-2.X.X(安装方法参考本博客其它文章) 执行下面命令: [root@localhost firefox]# ./firefox 启动firefox . |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于红旗 Linux Desktop5.0 安装Firefox2.0时报错的所有评论