安装zendFramwork,显示 ZF ERROR
安装zendFramwork的时候,在cmd中显示下面错误,如图
C:\Users\Administrator>zf show version
***************************** 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\Adm
inistrator
* Storage directory assumed in home directory at location \Users\Administrato
r/.zf/
* Storage directory does not exist at \Users\Administrator/.zf/
* Config file assumed in home directory at location \Users\Administrator/.zf.
ini
* Config file does not exist at \Users\Administrator/.zf.ini
To change the setup of this tool, run: "zf --setup"
其实,就是在php.ini中,没有把zend的library库加载进来,解决办法如下:
1.打开php.ini
2.把zend的libaray库加载进来