---
title: "Ubuntu Linux下安装Zend Studio "
author: "dimingchan"
date: "2010-11-25T16:48:35Z"
tags: []
categories: ["编程语言"]
slug: "ubuntu-linux-zend-studio"
draft: false
lastmod: "2010-11-25T17:09:20Z"
id: 824670
url: "https://dimingchan.iteye.com/blog/824670"
---

Ubuntu娱乐功能已经非常不错，无非是看看电影，听听歌，玩玩小游戏。接下来研究下Ubuntu下安装zend，google一下还真是有Zend for Linux，于是下载了下来，下面就将我的安装配置过程图文并茂地展示给大家：

   第一步当然是解压zip，解压出来一个 bin 格式的安装文件， cp到我的用户目录home/ibm中，在终端地直接输入./ZendStudio-5_5_1.bin，安装便自动安装（需要jre支持，我已经提前安 装过了，安装命令是：sudo apt-get install sun-java6-jre sun-java6-jdk），过不了多久，便开始了界面安装，见图：

![](http://www.okajax.com/uploads/allimg/081204/0722260.png)

和Windows下的安装界面一样，一路NEXT即可。

请注意，在安装过程中可能会出现：

awk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

Launching installer...

grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/tmp/install.dir.17548/Linux/resource/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

这可能是因为你安装的java的JRE与系统不兼容的结果，你可以在你的终端中输入如下命令来解决：

$ cp ZendSafeGuard-4_0_0.bin ZendSafeGuard-4_0_0.bin.bak 
$ cat ZendSafeGuard-4_0_0.bin.bak | \ 
  sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > \ 
  ZendSafeGuard-4_0_0.bin


Note: If you are installing Zend Studio Client, replace all occurrences of "ZendSafeGuard-4_0_0.bin" with "ZendStudio-5_1_0.bin" or "ZendStudio-X_X_X.bin" if you are installing a different version.

After the installation is complete, you can delete both the installer and the installer's .bak file. 

注意：如果你是安装 Zend Studio 客户端，请将所有的"ZendSafeGuard-4_0_0.bin"替换成"ZendStudio-5_1_0.bin"，或者"ZendStudio-X_X_X.bin"（如果你安装的是其他Zend Studio版本的话）。安装完成之后，你可以删除安装文件和安装文件的.bak文件。

(答案来源:<http://hi.baidu.com/i0n_p/blog/item/bb855909659d1eae2fddd473.html>)

   安装完毕后，打开软件，查看了下软件信息，发现软件许可到期时间是2008年12月3日，也就是一个月时间的试用期；在编码区输入汉字，发现全是口口（乱码），见图：

![](http://www.okajax.com/uploads/allimg/081204/0722261.png)

   不急，一个一个解决它！首先要破解软件许可日期，在网上找到了一个在线生成zend studio序列号的网站，网址：http://www.zendstudio.net/libs/zendstudio5_5_1-keymaker-php/

   然后就是解决中文乱码问题，网上有一个不错的解决办法：

   1. 创建文件夹fallback
   mkdir zend安装目录/ZendStudio-5.5.1/jre/lib/fonts/fallback
   2. 复制字体simsun.ttc（WINDOWS系统的Fonts目录下面有这个字体） 到fallback后名字为simsun.ttf
   cp simsun.ttc zend安装目录/ZendStudio-5.5.1/jre/lib/fonts/fallback/simsun.ttf
从新启动Zend，乱码问题解决了，见图：

![](http://www.okajax.com/uploads/allimg/081204/0722262.png)

   OK，Zend Studio安装好了，开始工作！