如何在 Ubuntu Lucid Lynx (10.x) 上安装 XULRunner 1.8.x/libxul0d? Eclipse SWT 浏览器所需
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(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。
Download the following files from the karmic repository (NOT lucid):
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.
您可以从 Mozilla 下载较旧的 Firefox(例如 3.5),然后将存档文件解压到某个位置。然后将 java.library.path 系统属性的路径添加到 eclipse.ini 中,
或者另一种方法是将 xulrunner 1.8.x 下载到某处,然后添加以下 vm 参数,
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,
or another way is downloading the xulrunner 1.8.x to somewhere, then add below vm arguments,