2016年05月03日

Ubuntu14.04でsikuliをインストールする

Ubuntu 14.04(trusty)でsikuli-ideをインストールした時のメモです。
universeにパッケージ化されていましたので、そのままインストールしました。Javaなどのパッケージが大量に入ります。
$ sudo apt-get install sikuli-ide

起動しようとすると、エラーで起動できません。
$ sikuli-ide
5 02, 2016 10:36:59 午後 java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
[info] locale: ja_JP
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/MapMaker
at org.python.core.PyType.fromClass(PyType.java:1280)
(以下略)

launchpadDebian BTSにバグ報告されています。
Debian BTSの"Message #5"の通り、/usr/bin/sikuli-ideを変更すると、sikuri-ideが起動できるようになりました。
元の/usr/bin/sikuli-ide
LC_NUMERIC=C exec /usr/bin/java -cp "/usr/share/java/jna.jar:/usr/share/java/asm3.jar:/usr/share/java/asm3-commons.jar:/usr/share/java/antlr3-runtime.jar:/usr/share/java/libconstantine-java.jar:/usr/share/java/jython.jar:/usr/share/java/commons-cli.jar:/usr/share/java/JXGrabKey.jar:/usr/share/java/json_simple.jar:/usr/share/java/swing-layout.jar:/usr/share/java/swingx-core.jar:/usr/share/java/forms.jar:/usr/share/java/jgoodies-common.jar:/usr/share/java/mac_widgets.jar:/usr/share/java/junit.jar:/usr/share/sikuli/sikuli-ide.jar:/usr/share/java/sikuli-script.jar" -Dsikuli.console=true -Dsikuli.debug=0 -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dpython.home=/usr/share/jython -Dpython.path="/usr/share/sikuli/Lib" -Dpython.cachedir=$HOME/.jython-cache org.sikuli.ide.SikuliIDE "$@"

変更後の/usr/bin/sikuli-ide
LC_NUMERIC=C exec /usr/bin/java -cp "/usr/share/maven-repo/com/google/guava/guava/debian/guava-debian.jar:/usr/share/maven-repo/org/jruby/ext/posix/jnr-posix/debian/jnr-posix-debian.jar:/usr/share/java/jaffl.jar:/usr/share/java/jna.jar:/usr/share/java/asm3.jar:/usr/share/java/asm3-commons.jar:/usr/share/java/antlr3-runtime.jar:/usr/share/java/libconstantine-java.jar:/usr/share/java/jython.jar:/usr/share/java/commons-cli.jar:/usr/share/java/JXGrabKey.jar:/usr/share/java/json_simple.jar:/usr/share/java/swing-layout.jar:/usr/share/java/swingx-core.jar:/usr/share/java/forms.jar:/usr/share/java/jgoodies-common.jar:/usr/share/java/mac_widgets.jar:/usr/share/java/junit.jar:/usr/share/sikuli/sikuli-ide.jar:/usr/share/java/sikuli-script.jar" -Dsikuli.console=true -Dsikuli.debug=0 -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dpython.home=/usr/share/jython -Dpython.path="/usr/share/sikuli/Lib" -Dpython.cachedir=$HOME/.jython-cache org.sikuli.ide.SikuliIDE "$@"

(参考)エラーメッセージ全体
5 02, 2016 10:36:59 午後 java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
[info] locale: ja_JP
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/MapMaker
at org.python.core.PyType.fromClass(PyType.java:1280)
at org.python.core.PyObject.(PyObject.java:66)
at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21)
at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16)
at org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethodNarrow.java:24)
at org.python.core.PyType$type___subclasses___exposer.(Unknown Source)
at org.python.core.PyType$PyExposer.(Unknown Source)
at org.python.core.PyType.(PyType.java)
at org.python.core.PyObject.(PyObject.java:66)
at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java:21)
at org.python.core.PyBuiltinMethod.(PyBuiltinMethod.java:16)
at org.python.core.PyBuiltinMethodNarrow.(PyBuiltinMethodNarrow.java:24)
at org.python.core.PyDataDescr$getset_descriptor___get___exposer.(Unknown Source)
at org.python.core.PyDataDescr$PyExposer.(Unknown Source)
at org.python.core.PyDataDescr.(PyDataDescr.java)
at org.python.core.PyBuiltinCallable$PyExposer.(Unknown Source)
at org.python.core.PyBuiltinCallable.(PyBuiltinCallable.java)
at org.python.core.PyObject$PyExposer.(Unknown Source)
at org.python.core.PyObject.(PyObject.java)
at org.python.util.PythonInterpreter.initialize(PythonInterpreter.java:57)
at org.sikuli.script.ScriptRunner.init(ScriptRunner.java:32)
at org.sikuli.script.ScriptRunner.(ScriptRunner.java:28)
at org.sikuli.script.ScriptRunner.getInstance(ScriptRunner.java:23)
at org.sikuli.ide.SikuliIDE.(SikuliIDE.java:664)
at org.sikuli.ide.SikuliIDE.getInstance(SikuliIDE.java:138)
at org.sikuli.ide.SikuliIDE.main(SikuliIDE.java:975)
Caused by: java.lang.ClassNotFoundException: com.google.common.collect.MapMaker
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 26 more



ラベル:ubuntu
posted by 端っこなひと at 22:48| Comment(0) | TrackBack(0) | Linux | このブログの読者になる | 更新情報をチェックする