如何在 Ubuntu Lucid Lynx (10.x) 上安装 XULRunner 1.8.x/libxul0d? Eclipse SWT 浏览器所需

发布于 2024-10-08 04:41:24 字数 1678 浏览 0 评论 0原文

Ubuntu 10.04.1 64 位上的 Eclipse SWT 3.3.0 中的内部浏览器无法运行。我相信这是因为 libxpcom.so 找不到,并且我相信这是因为 libxul0d 软件包未安装。然而,它似乎在 Ubuntu 10 中被删除,我不知道如何找出原因、它被替换为什么以及我是否可以安全地使用 karmic 中的 libxul0d。

这主要是一个系统管理问题,所以我从 superuser.com 但程序员可能知道答案,而且我很确定很多人一旦找到答案就会想知道答案。

错误消息:

org.eclipse.swt.SWTError: No more handles (java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3346 or swt-mozilla-gtk in swt.library.path, java.library.path or the jar file)

这是运行 Eclipse SWT 3.3.0 的 Eclipse RCP 应用程序。如果我找到该库并运行 ldd libswt-mozilla-gtk-3346.so ,我得到:

linux-vdso.so.1 =>  (0x00007fff269ff000)
libxpcom.so => not found
libnspr4.so => /usr/lib/libnspr4.so (0x00007fbd6470b000)
libplds4.so => /usr/lib/libplds4.so (0x00007fbd64506000)
libplc4.so => /usr/lib/libplc4.so (0x00007fbd64301000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fbd63fed000)
libm.so.6 => /lib/libm.so.6 (0x00007fbd63d69000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fbd63b52000)
libc.so.6 => /lib/libc.so.6 (0x00007fbd637cf000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fbd635b1000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fbd633ad000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbd64a73000)

我可以看到 karmic 中的 libxul0d 有共享库,但该库不在 Lucid 中。

根据 Eclipse SWT FAQ,我似乎需要 1.8.x 的 XULRunner,因此 Lucid 中的 XULRunner 1.9.x 没有帮助。

那么,我如何找出该软件包发生了什么以及我选择安装什么?请注意,升级 Eclipse SWT 不是一个选项。

The internal browser in Eclipse SWT 3.3.0 on Ubuntu 10.04.1 64 bit does not run. I believe this is because libxpcom.so cannot be found and I believe this is because the libxul0d package is not installed. However, it appears to be deleted in Ubuntu 10 and I don't know how to find out why, what it's been replaced with and whether I can safely use libxul0d from karmic anyway.

This is mostly a system administration question so I'm crossing posting from superuser.com but a programmer may know the answer and I'm pretty sure a lot of people will want to know the answer once it's found.

Error message:

org.eclipse.swt.SWTError: No more handles (java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3346 or swt-mozilla-gtk in swt.library.path, java.library.path or the jar file)

This is an Eclipse RCP application running Eclipse SWT 3.3.0. If I find that library and run ldd libswt-mozilla-gtk-3346.so I get:

linux-vdso.so.1 =>  (0x00007fff269ff000)
libxpcom.so => not found
libnspr4.so => /usr/lib/libnspr4.so (0x00007fbd6470b000)
libplds4.so => /usr/lib/libplds4.so (0x00007fbd64506000)
libplc4.so => /usr/lib/libplc4.so (0x00007fbd64301000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fbd63fed000)
libm.so.6 => /lib/libm.so.6 (0x00007fbd63d69000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fbd63b52000)
libc.so.6 => /lib/libc.so.6 (0x00007fbd637cf000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fbd635b1000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fbd633ad000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbd64a73000)

I can see that libxul0d in karmic has the shared library but that library is not in Lucid.

It seems that, according to the Eclipse SWT FAQ, that I need 1.8.x of XULRunner so the XULRunner 1.9.x in Lucid won't help.

So, how do I find out what happened to that package and what do I choose to install? Note that upgrade Eclipse SWT isn't an option.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

待天淡蓝洁白时 2024-10-15 04:41:24
  1. 从业力存储库下载以下文件(不清晰):

    • libmozjs0d(http://packages.ubuntu.com/karmic/amd64/libmozjs0d/download)
    • libxul-common(http://packages.ubuntu.com/karmic/libxul-common)
    • libxul0d(http://packages.ubuntu.com/karmic/libxul0d)
    • xulrunner(http://packages.ubuntu.com/karmic/xulrunner)
  2. 按照给定的顺序安装软件包,使用以下命令。

    sudo dpkg -i ~/Desktop/.deb

请注意,可以使用 apt-get 来固定 karmic 存储库(https://help.ubuntu.com/community/UbuntuBackports),但我还没有尝试过。

问题是报告正在通过 SWT 加载浏览器。然后,SWT 代码会寻找浏览器并尝试找到各种所需的共享库。 XULRunner 是 Firefox 浏览功能的核心,现在 lucid 存储库中的版本为 v1.9。然而,SWT v3.3.0(正如我们所拥有的)需要业力中的 v1.8。

  1. Download the following files from the karmic repository (NOT lucid):

    • libmozjs0d(http://packages.ubuntu.com/karmic/amd64/libmozjs0d/download)
    • libxul-common(http://packages.ubuntu.com/karmic/libxul-common)
    • libxul0d(http://packages.ubuntu.com/karmic/libxul0d)
    • xulrunner(http://packages.ubuntu.com/karmic/xulrunner)
  2. Install the packages, in the order given, using the following command.

    sudo dpkg -i ~/Desktop/.deb

Note that it may be possible to use apt-get to pin the karmic repository(https://help.ubuntu.com/community/UbuntuBackports) but I haven't tried this.

The issue is that the Reports are loading a browser via SWT. The SWT code then goes looking for a browser and tries to find various required shared libraries. XULRunner is the core Firefox browsing functionality which is now v1.9 in the lucid repositories. However, SWT v3.3.0 (as we have) requires v1.8 which is in karmic.

一抹微笑 2024-10-15 04:41:24

您可以从 Mozilla 下载较旧的 Firefox(例如 3.5),然后将存档文件解压到某个位置。然后将 java.library.path 系统属性的路径添加到 eclipse.ini 中,

-vmargs -Djava.library.path=<somewhere>/firefox-3.5/lib/

或者另一种方法是将 xulrunner 1.8.x 下载到某处,然后添加以下 vm 参数,

-vmargs -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib32/xulrunner-1.8.x/

You could download the older firefox such as 3.5 from Mozilla, then unpackage the archive file to somewhere. Then add the path to java.library.path system property into your eclipse.ini,

-vmargs -Djava.library.path=<somewhere>/firefox-3.5/lib/

or another way is downloading the xulrunner 1.8.x to somewhere, then add below vm arguments,

-vmargs -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib32/xulrunner-1.8.x/
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文