Zend_Tool问题 [英] Zend_Tool problem

查看:109
本文介绍了Zend_Tool问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第三次安装zend studio和zend服务器,现在这两个安装成功(半天后).但是当我尝试创建一个新项目时,我总是会遇到这个zf错误...

This is the third time I'm installing zend studio and zend server now these two are installed succesfully (after half a day). But when I'm trying to create a new project I always get this zf error...

` * ** * ** * ** * ** * ** ZF错误 * ** * ** * ** * ** * ** * 为了运行zf命令,您需要确保Zend Framework 在您的include_path内部.您可以通过多种方式 确保此zf命令行工具知道Zend框架的位置 库已在您的系统上,但此处无法描述所有库.

` *************** ZF ERROR **************** In order to run the zf command, you need to ensure that Zend Framework is inside your include_path. There are a variety of ways that you can ensure that this zf command line tool knows where the Zend Framework library is on your system, but not all of them can be described here.

The easiest way to get the zf command running is to give it the include 
path via an environment variable ZEND_TOOL_INCLUDE_PATH or 
ZEND_TOOL_INCLUDE_PATH_PREPEND with the proper include path to use,
then run the command "zf --setup".  This command is designed to create
a storage location for your user, as well as create the zf.ini file
that the zf command will consult in order to run properly on your
system.  

Example you would run:

$ ZEND_TOOL_INCLUDE_PATH=/path/to/library zf --setup

Your are encourged to read more in the link that follows.
Zend_Tool & CLI Setup Information
(available via the command line "zf --info")
   * Home directory found in environment variable HOMEPATH with value \Users\admin
   * Storage directory assumed in home directory at location \Users\admin/.zf/
   * Storage directory does not exist at \Users\admin/.zf/
   * Config file assumed in home directory at location \Users\admin/.zf.ini
   * Config file does not exist at \Users\admin/.zf.ini

To change the setup of this tool, run: "zf --setup"

好的(接听0:04.038) `

ok (took 0:04.038) `

我已经使用新的zend-framework库通过命令行设置了ZF_INCLUDE_PATH.

I've already set the ZF_INCLUDE_PATH via command line with a new zend-framework library.

我从来没有全新安装过与zend相关的任何东西.

I never had a clean install with anything related to zend.

有人可以帮我吗?

谢谢

推荐答案

我从您在Windows计算机上工作的路径中推测. Zend Studio使用zend工具(在Windows中为zf.bat)创建一个项目.要使其正常工作,您必须正确安装zend工具,即,您必须能够打开控制台(WINDOWS + R,键入cmd,键入enter)并成功运行zf命令.

I presume from the paths you are working on a windows machine. Zend Studio uses the zend tool (zf.bat in windows) to create a project. To make it work you must have properly installed the zend tool, i.e. you must be able to open a console (WINDOWS+R, type cmd, type enter) and successfully run the zf command.

在您看来,这可能是路径问题,您可以按照此处的说明进行解决:

In your case probably is a path issue, that you can resolve following the instructions here: http://framework.zend.com/manual/en/zend.tool.framework.clitool.html#zend.tool.framework.clitool.setup-windows

尤其是:

在Windows Win32环境中,最常见的设置是将zf.bat和zf.php复制到与PHP二进制文件相同的目录中.通常可以在以下位置之一找到它:

The most common setup in the Windows Win32 environment, is to copy the zf.bat and zf.php into the same directory as your PHP binary. This can generally be found in one of the following places:

C:\PHP
C:\Program Files\ZendServer\bin\
C:\WAMP\PHP\bin

您应该能够在命令行上运行php.exe.如果不能,请首先检查PHP发行版随附的文档,或确保php.exe的路径在Windows PATH环境变量中.

You should be able to run php.exe on the command line. If you are not able to, first check the documentation that came with your PHP distribution, or ensure that the path to php.exe is in your Windows PATH environment variable.

接下来的工作是确保在PHP PHP include_path系统内部正确设置Zend Framework库.要找出include_path的位置,可以键入php -i并查找include_path变量,或者更简洁地执行php -i | grep include_path(如果您具有可用grep的Cygwin设置).找到include_path的位置后(通常类似于C:\ PHP \ pear,C:\ PHP \ share,C:\ Program%20Files \ ZendServer \ share或类似文件),请确保库/目录放置在您的include_path指定的目录内.

The next order of business is to ensure that Zend Framework library is set up correctly inside of the system PHP include_path. To find out where your include_path is located, you can type php -i and look for the include_path variable, or more succinctly execute php -i | grep include_path if you have Cygwin setup with grep available. Once you have found where your include_path is located (this will generally be something like C:\PHP\pear, C:\PHP\share, C:\Program%20Files\ZendServer\share or similar), ensure that the contents of the library/ directory are put inside your include_path specified directory.

这篇关于Zend_Tool问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆