yum安装firefox错误libnssutil3.s

2024-10-01 15:37:57 发布

您现在位置:Python中文网/ 问答频道 /正文

在Linux服务器上安装/列出firefoxpython时遇到这个错误。有什么办法解决吗。在

# yum install firefox
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   /usr/lib64/libnssutil3.so: undefined symbol: PL_ClearArenaPool

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.4.3 (#1, Oct 23 2012, 22:02:41)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq

而不是为firefox-version命令获取以下输出/值。在

^{pr2}$

我得到了:

XPCOMGlueLoad error for file /opt/firefox/libxpcom.so:
libxul.so: cannot open shared object file: No such file or directory
Couldn't load XPCOM.

python-h命令输出看起来有效。
python-V显示:

Python 2.4.3

当我运行Selenium测试(需要firefox和Xvfb)时,我得到以下错误:

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
XPCOMGlueLoad error for file /opt/firefox/libxpcom.so:
libxul.so: cannot open shared object file: No such file or directory
Couldn't load XPCOM.
XPCOMGlueLoad error for file /opt/firefox/libxpcom.so:
libxul.so: cannot open shared object file: No such file or directory
Couldn't load XPCOM.

Tags: orthetoforsoerrorfirefoxthis
1条回答
网友
1楼 · 发布于 2024-10-01 15:37:57

python/64的路径设置不包括libu的值。我们通过预挂起/lib64:/usr/lib64到LD_LIBRARY_路径来解决这个问题。在

export LD_LIBRARY_PATH=/usr/lib64/:/lib64:$LD_LIBRARY_PATH

在此之后,当我执行yum帮助或yum安装firefox时(它没有给出上述错误),但是:

firefox版本仍然出现错误:

^{pr2}$

现在,我终于运行了yum install firefox,它安装了一堆组件,最后说:

  Installing     : alsa-lib                                                                                                                                                                                                  20/23
  Installing     : xulrunner                                                                                                                                                                                                 21/23
  Installing     : firefox                                                                                                                                                                                                   22/23
  Installing     : firefox                                                                                                                                                                                                   23/23

Installed:
  firefox.i386 0:17.0.9-1.el5_9                                                                                   firefox.x86_64 0:17.0.9-1.el5_9

Dependency Installed:
  GConf2.i386 0:2.14.0-9.el5        ORBit2.i386 0:2.14.3-5.el5   alsa-lib.i386 0:1.0.17-1.el5      atk.i386 0:1.12.2-1.fc6        avahi.i386 0:0.6.16-10.el5_6 avahi-glib.i386 0:0.6.16-10.el5_6 cairo.i386 0:1.2.4-5.el5
  cups-libs.i386 1:1.3.7-30.el5_9.3 gamin.i386 0:0.1.7-10.el5    gnome-vfs2.i386 0:2.16.2-12.el5_9 gnutls.i386 0:1.4.1-10.el5_9.2 gtk2.i386 0:2.10.4-29.el5    libIDL.i386 0:0.8.7-1.fc6         libXcursor.i386 0:1.1.7-1.2
  libXfixes.i386 0:4.0.1-2.1        libXinerama.i386 0:1.0.1-2.1 libXrandr.i386 0:1.1.1-3.3        libacl.i386 0:2.2.39-8.el5     libattr.i386 0:2.4.32-1.1    pango.i386 0:1.14.9-8.el5_7.3     xulrunner.i386 0:17.0.9-1.el5_9

Complete!

现在firefox版本显示正确。在

firefox版本

Mozilla Firefox 17.0.9

现在一切正常。在

相关问题 更多 >

    热门问题