Zend studio requires a Java environment:
1. Install openjdk by default on Ubuntu and reinstall JDK 1.7.0 _ 17.
Decompress the file
Sudo tar-zxvf/home/chengwen/jdk1.7.0_17.tar.gz-C/usr/local/
Configuration file/etc/profile
Sudo Vim/etc/profile
Add
Export java_home =/usr/local/jdk1.7.0 _ 17
Export jre_home =/usr/local/jdk1.7.0 _ 17/JRE
Export classpath =.: $ java_home/lib: $ jre_home/lib: $ classpath
Export Path =.: $ java_home/bin: $ jre_home/bin: $ path
3. Modify Environment Variables
Vim ~ /. Bashrc
Add the following lines and change/usr/local/jdk1.7.0 _ 17 to your Java installation directory, my directory/usr/local/jdk1.7.0 _ 17.
Export java_home =/usr/local/jdk1.7.0 _ 17
Export jre_home =$ {java_home}/JRE
Export classpath =. :$ {java_home}/lib :$ {jre_home}/lib
Export path =$ {java_home}/bin: $ path
4. Save and exit. Enter the following command to make it take effect immediately.
Source ~ /. Bashrc
5. Configure the default JDK version
Ubuntu may have a default JDK, such as openjdk. To set the JDK we installed as the default JDK version, perform the following work.
Run the Code:
Sudo Update-alternatives -- install/usr/bin/Java/usr/local/jdk1.7.0 _ 17/bin/Java 300
Sudo Update-alternatives -- install/usr/bin/javac/usr/local/jdk1.7.0 _ 17/bin/javac 300
Sudo Update-alternatives -- install/usr/bin/Jar/usr/local/jdk1.7.0 _ 17/bin/jar 300
Sudo Update-alternatives -- install/usr/bin/javah/usr/local/jdk1.7.0 _ 17/bin/javah 300
Sudo Update-alternatives -- install/usr/bin/javap/usr/local/jdk1.7.0 _ 17/bin/javap 300
6. Run the Code:
Sudo Update-alternatives -- config Java
View version number
Java-version: jdk1.7.0 _ 17 indicates that the configuration is correct.
Zend studio installation:
Download zendstudio from the official website. I am a 64-bit zendstudio-9.0.0-x86_64.tar.gz.
Decompress zendstudio-9.0.0-x86_64.tar.gz to the installation directory/usr/local/. The command is as follows:
Sudo tar-zxvf ZendStudio-9.0.0-x86_64.tar.gz-C/usr/local/
// Set zendstudio directory permission to the current user
Sudo chown-r chenwen: chenwen zendstudio
// If you want to start with root, set as follows:
Sudo chown-r root: Root zendstudio
// The command line can be started after decompression.
Download: COM. Zend. php. core_9.0.0.201111_1531.jar overwrites the plug-ins where Zend studio 9.0 is installed.
Start Zend studio 9.0 and enter the license key: License
Create the Ubuntu zendstudio menu:
Sudo gedit/usr/share/applications/zendstudio. Desktop
Add the following content:
[Desktop entry]
Version = 1.0
Encoding = UTF-8
Name = zendstudio
Exec =/usr/local/zendstudio
Icon =/usr/local/zendstudio/icon. XPM
Terminal = false
Type = Application
Categories = application; ide; PHP;
Now you can see the eclipse icon in/usr/share/applications.
Create a starter:
Sudo gedit/usr/bin/zendstudio. Sh
Add the following content:
#! /Bin/sh
Export export illa_five_home = "/usr/lib/Mozilla /"
Export zendstudio_home = "/usr/local/zendstudio"
$ Zendstudio_home/zendstudio $ *
Add executable permissions:
Sudo chmod + x/usr/local/zendstudio
Source: http://blog.sina.com.cn/s/blog_87b9bbc701017vdn.html, modified the error inside.