My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
InstallSDK  

Featured
Updated Jan 2, 2012 by ganoro

Installing Zend SDK

This page describes how to install the Zend SDK and set up your development environment for the first time.

If you encounter any problems during installation, see the Troubleshooting section at the bottom of this page.

Here's an overview of the steps you must follow to set up the Zend SDK:

  1. Prepare your development environment and ensure it meets the system requirements.
  2. Install the SDK starter package.
  3. Install the Plugin for Eclipse (if you'll be developing in Eclipse).
  4. Add Zend Target environment to your SDK.
  5. Explore the contents of the Zend SDK (optional).

1. Preparing Your Development Environment

Before getting started with the Zend SDK, take a moment to confirm that your development computer meets the System Requirements. In particular, you might need to install the JDK, if you don't have it already.

2. Install the SDK

The SDK starter package is not a full development environment. It includes only the core SDK Tools, which you can use to set up local and remote application servers.

If you haven't already, get the latest version of the SDK starter package from the main SDK download page.

After you downloaded a .zip or .tgz package , unpack it to a safe location on your machine. By default, the SDK files are unpacked into a directory named zend-sdk-<ver>

Make a note of the name and location of the SDK directory on your system - you will need to refer to the SDK directory later, when using the SDK tools from the command line.

If you prefer to work from the command line, read the Command Line Tool Manual, otherwise continue to step 3.

3. Install the Eclipse Plugin

Zend offers a custom plugin for the Eclipse IDE, that is designed to give you a powerful, integrated environment in which to build PHP applications. It extends the capabilities of Eclipse to let you quickly set up new Zend projects, and debug your applications using the Zend SDK tools. In general, developing in Eclipse is a highly recommended approach and is the fastest way to get started with Zend.

If you'd like to use this plugin for developing Zend applications, install it now. Read Installing the Zend SDK Eclipse Plugin for step-by-step installation instructions, then return here to continue the last step in setting up your environment.

4. Exploring the SDK (Optional)

Once you've installed the SDK and downloaded the platforms, documentation, and add-ons that you need, we suggest that you open the SDK directory and take a look at what's inside.

The table below describes the full SDK directory contents, with components installed.

Name Description
lib/ Contains the set of libraries that helps interacting with targets, creating create projects, configure environment and deploy applications. You mostly don't need to use these files directly
resources/ Contains the set of resources that are required to validate the package descriptor
tools/ Contains the set of development tools that are target-independent
README.txt A file that explains how to perform the initial setup of your SDK, including how to launch the zend SDK

Optionally, you might want to add the location of the SDK's tools/ and platform-tools to your PATH environment variable, to provide easy access to the tools.

For Command Line'rs - How to update your PATH

Adding tools/ to your PATH lets you run command line tools without needing to supply the full path to the tool directories. Depending on your operating system, you can include these directories in your PATH in the following way:

  • On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ directory to the path. Or you can use this command line in cmd:
  • set PATH=%PATH%;</path/to/sdk>/tools
  • On Linux, edit your ~/.bash_profile or ~/.bashrc file. Look for a line that sets the PATH environment variable and add the full path to the tools/ directory to it. If you don't see a line setting the path, you can add one:
  • export PATH=$PATH:</path/to/sdk>/tools
  • On a Mac OS X, look in your home directory for .bash_profile and proceed as for Linux. You can create the .bash_profile if you don't already have one.

Troubleshooting

TBD

Comment by hoang...@gmail.com, May 9, 2012

Tôi chưa hiểu gì các mục trên cần thiết hướng dẫn rõ ràng hơn hoặc thiết lập trang nào cụ thể dễ hiểu cảm ơn...


Sign in to add a comment
Powered by Google Project Hosting