0

我已经为黑莓安装了 Momentics IDE 2.0,但是出了点问题。我正在使用 debian x64,当我尝试运行它时,我收到一条错误消息:

MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
     /home/User/bbndk/configuration/org.eclipse.osgi/bundles/361/1/.cp/libswt-pi-gtk-4236.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
    no swt-pi-gtk in java.library.path
    /home/User/.swt/lib/linux/x86/libswt-pi-gtk-4236.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
    Can't load library: /home/User/.swt/lib/linux/x86/libswt-pi-gtk.so

所以在黑莓页面上它说要安装(ia32-libs)类型的库。我无法安装它们,因为我收到一条消息说:

some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
ia32-libs : Depends: ia32-libs-i386 but it is not installable
E: Unable to correct problems, you have held broken packages.

我怎样才能解决这个问题?

4

1 回答 1

0

我不确定您是如何到达那里的,因为在我的情况下,由于 ia32-libs,我被阻止运行 java。简而言之,这就是我在 ubuntu 13.10 x86_64 上安装 momentics-2.0 的方式。

  1. 将此行添加到 /etc/apt/sources.list 的底部(不确定是否仍需要此行):deb http://ca.archive.ubuntu.com/ubuntu raring main Universe
  2. 安装这些库作为 ia32-libs 的替代品:ywu@ywu-HP-8100:/install$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
  3. 修复缺少的 libgtk-x11-2.0.so.0:ywu@ywu-HP-8100:/install$ sudo apt-get install libgtk2.0-0:i386
  4. 修复缺少的 libXtst.so.6:ywu@ywu-HP-8100:/install$ sudo apt-get install libxtst6:i386
  5. 安装momentics-2.0:ywu@ywu-HP-8100:/install$ sudo ./momentics-2.0-201310251201-linux.gtk.x86.bin

祝你好运!

于 2014-01-31T16:54:42.910 回答