ubuntu 下安装 zend guard 经验

 

 

Zend Studio and Zend Guard Installation Problems on GNU/Linux Systems

 

 
Article ID: 13
Last updated: 13 Apr, 2009
Views: 2728

This article applies to:

[ Zend Studio for Eclipse 6.x, Zend Studio 5.x, Zend Guard 5.x ]
[ Linux ]


Symptom

Two types of problems have been reported:

  1. Installation is successful with normal user account but fails when run as superuser (root).
  2. Installation fails resulting an a JRE error.

 

Error messages

Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
Launching installer...
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
Stack Trace:
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.

 

Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
Launching installer...
exec: 2481: /tmp/install.dir.5489/Linux/resource/jre/bin/java: not found

 

Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
Launching installer...
No protocol specified
'SWING' UI not supported by VM. Reverting to AWT.
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
Stack Trace:
java.lang.NoClassDefFoundError

Technical Details

 

  1. The Macrovision InstallAnywhere installer can't find the display to run on, due to current environment not being transferred into the superuser session. Basically, same commands should produce the same effect on any system. In reality, this is not the case -- many nuances vary from distribution to distribution.
  2. The Macrovision InstallAnywhere installer has compatibility issues, resulting in its inability to find/access the packaged JRE, or to run it properly.

Resolution / Workaround

Fortunately, the problems are quite easy to workaround:

  1. Just set the DISPLAY environment variable for the installer using one of these commands:
    • # DISPLAY=:0 ./ZendStudio5_5_1.bin
    • $ sudo export DISPLAY=:0; ./ZendStudio5_5_1.bin
  2. Instruct the installer to run in GUI-less (console) mode:
    • # ./ZendStudio5_5_1.bin -i console
  3. Instruct the installer to use system's JRE. It is definitely accessible and is compatible with the distribution:
    • # ./ZendStudio5_5_1.bin LAX_VM /usr/bin/java
Note:
/usr/bin/java is the correct path in most distributions, however, your mileage may vary. To find the path on your system:
# which java

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值