LAMP開発環境構築に苦戦中(その4) -- MOZILLA_FIVE_HOME と xulrunner

Zend Eclipse PDT / PDT 3.0.2 w/Eclipse Indigo (64 bit) を起動すると下のようなエラーがでる。
f:id:quwahara:20120814105955p:plain

そのまま OK すると、Eclipse は起動するが、さらに下のような、エラーがでる。
f:id:quwahara:20120814110133p:plain

また、Eclipse for PHP Developers でも PHP Debug パースペークティブにすると下のようなエラーがでる。
f:id:quwahara:20120814110421p:plain

どうも SWT が何かしら browser engine を要求するようだが、Ubuntu 12.04 には、上記の EclipseSWT と互換性がある browser engine が入っていないようだ。

Ubuntu 12.04 の規定のブラウザが、Firefox 14.0.1 なので、
それに合わせた xulrunner というのをインストールすればよさそうだ
しかし、インストールしてもうまくいかない。

やったことは下から xulrunner をダウンロードし、/opt/xulrunner 下に配置した。
https://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/14.0.1/runtimes/

$export MOZILLA_FIVE_HOME=/opt/xulrunner
をした terminal で Eclipse for PHP Developers を起動する。
残念ながら落ちてしまう。

$ ./eclipse
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000000000000, pid=2377, tid=140656570418944
#
# JRE version: 7.0_05-b06
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.1-b03 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  0x0000000000000000
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/yourusername/eclipse-pdt/hs_err_pid2377.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

同じく
$export MOZILLA_FIVE_HOME=/opt/xulrunner
をした terminal で Zend Eclipse PDT を起動する。
こちらは起動はするがやっぱりエラーがでる。
f:id:quwahara:20120814115733p:plain
f:id:quwahara:20120814115915p:plain

仕方がないのでこちらを参考に mozilla は諦めて、webkit を入れてみる。
http://tech.pedersen-live.com/2012/07/enable-internal-browser-in-eclipse-on-ubuntu-12-04/

Eclipse for PHP Developers を起動すると、最初と状況が変わらず下のようなエラーがでる。
f:id:quwahara:20120814110421p:plain

Zend Eclipse PDT を起動すると、起動自体にエラーはでないが、
terminal に下のようなエラーメッセージがでる。

$ ./eclipse-php 

(Eclipse for PHP Developers:2281): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed


どうしたらいいものやら...