0

Planetlabという名前のテストベッドのノード(64ビット)に取り組んでいます。Java パスが設定され、単純な jar ファイルが機能しています。このノードで Azureus/Vuze bittorrent クライアントを実行する必要があります。Vuze のインストーラー tar ファイルを抽出し、コマンド「./vuze」を使用して Ubuntu で実行されます。ノードで実行しようとすると、次のようなものに遭遇しました。

Starting Azureus...
Suitable java version found [java = 1.6.0_16]
Configuring environment...
Java exec found in PATH. Verifying...
Browser check failed with: Could not load SWT library. Reasons: 
    no swt-pi-gtk-4403 in java.library.path
    no swt-pi-gtk in java.library.path
    /home/ku_green/.swt/lib/linux/x86/libswt-pi-gtk-4403.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
    Can't load library: /home/ku_green/.swt/lib/linux/x86/libswt-pi-gtk.so

Auto-scanning for GRE/XULRunner.  You can skip this by appending the GRE path to LD_LIBRARY_PATH and setting MOZILLA_FIVE_HOME.
Browser check failed with: Could not initialize class org.eclipse.swt.widgets.Display
Can't create browser.  Will try to set LD_LIBRARY_PATH and hope Vuze has better luck.
GRE/XULRunner automatically found
Loading Azureus:
java -Xmx128m -cp "./Azureus2.jar:./swt.jar" -Djava.library.path="/home/ku_green/vuze" -Dazureus.install.path="/home/ku_green/vuze" -Dazureus.script="./vuze" -Dazureus.script.version=3 org.gudy.azureus2.ui.swt.Main 
file:/home/ku_green/vuze/Azureus2.jar ; file:/home/ku_green/vuze/swt.jar ; file:/home/ku_green/vuze/
changeLocale: *Default Language* != English (United States). Searching without country..
changeLocale: Searching for language English in *any* country..
changeLocale: no message properties for Locale 'English (United States)' (en_US), using 'English (default)'
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.gudy.azureus2.ui.swt.Main.<init>(Main.java:114)
    at org.gudy.azureus2.ui.swt.Main.main(Main.java:325)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.aelitis.azureus.launcher.MainExecutor$1.run(MainExecutor.java:37)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
    no swt-pi-gtk-4403 in java.library.path
    no swt-pi-gtk in java.library.path
    /home/ku_green/.swt/lib/linux/x86/libswt-pi-gtk-4403.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
    Can't load library: /home/ku_green/.swt/lib/linux/x86/libswt-pi-gtk.so

    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327)
    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)
    at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:31)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
    at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
    at org.eclipse.swt.widgets.Display.<clinit>(Display.java:133)
    at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.<init>(SWTThread.java:85)
    at org.gudy.azureus2.ui.swt.mainwindow.SWTThread.createInstance(SWTThread.java:64)
    at com.aelitis.azureus.ui.swt.Initializer.<init>(Initializer.java:163)
    ... 12 more
Exit from Azureus complete
No shutdown tasks to do
Azureus TERMINATED.

この理由は何ですか?

4

1 に答える 1

0

その理由は次のとおりです。

    /home/ku_green/.swt/lib/linux/x86/libswt-pi-gtk-4403.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

SWT には GTK ライブラリが必要ですが、システムには存在しません。具体的には、libgtk-x11-2.0.so.0見つかりませんでした。

を使用して、このシステム ライブラリをインストールyumする必要があります。

まず、ライブラリを含むパッケージを見つけます:

yum whatprovides */libgtk-x11-2.0.so.0

次に、それが示すパッケージをインストールします。

yum install gtk2
于 2013-12-08T17:20:37.317 に答える