我做的第一件事是修改" C:\ Program Files(x86)\ Zend \ ZendServer \ bin \ PEAR"给自己和系统以及应用程序安装程序完全控制。我以管理员身份打开PowerShell窗口并运行以下" php go-pear.phar"。我输出如下:
PS C:\Program Files (x86)\Zend\ZendServer\bin\PEAR> php go-pear.phar
Are you installing a system-wide PEAR or a local copy?
(system|local) [system] :
Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type 'all' to change all of them or simply press Enter to
accept these locations.
1. Installation base ($prefix) : C:\Program Files (x86)\Zend\ZendServer\bin\PEAR
2. Temporary directory for processing : C:\Program Files (x86)\Zend\ZendServer\bin\PEAR\tmp
3. Temporary directory for downloads : C:\Program Files (x86)\Zend\ZendServer\bin\PEAR\tmp
4. Binaries directory : C:\Program Files (x86)\Zend\ZendServer\bin\PEAR
5. PHP code directory ($php_dir) : C:\Program Files (x86)\Zend\ZendServer\bin\PEAR\pear
6. Documentation directory : C:\Program Files (x86)\Zend\ZendServer\bin\PEAR\docs
7. Data directory : C:\Program Files (x86)\Zend\ZendServer\bin\PEAR\data
8. User-modifiable configuration files directory : C:\Program Files (x86)\Zend\ZendServer\bin\PEAR\cfg
9. Public Web Files directory : C:\Program Files (x86)\Zend\ZendServer\bin\PEAR\www
10. Tests directory : C:\Program Files (x86)\Zend\ZendServer\bin\PEAR\tests
11. Name of configuration file : C:\WINDOWS\pear.ini
12. Path to CLI php.exe : C:\Program Files (x86)\Zend\ZendServer\bin
1-12, 'all' or Enter to continue:
Beginning install...
Configuration written to C:\WINDOWS\pear.ini...
Initialized registry...
Preparing to install...
installing phar://C:/Program Files (x86)/Zend/ZendServer/bin/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.7.tar...
installing phar://C:/Program Files (x86)/Zend/ZendServer/bin/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.3.0.tar...
installing phar://C:/Program Files (x86)/Zend/ZendServer/bin/PEAR/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.9.4.tar...
installing phar://C:/Program Files (x86)/Zend/ZendServer/bin/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.4.tar...
installing phar://C:/Program Files (x86)/Zend/ZendServer/bin/PEAR/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.2.1.tar...
could not extract the package.xml file from "phar://C:/Program Files (x86)/Zend/ZendServer/bin/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.7.tar"
could not extract the package.xml file from "phar://C:/Program Files (x86)/Zend/ZendServer/bin/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.3.0.tar"
could not extract the package.xml file from "phar://C:/Program Files (x86)/Zend/ZendServer/bin/PEAR/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.9.4.tar"
could not extract the package.xml file from "phar://C:/Program Files (x86)/Zend/ZendServer/bin/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.4.tar"
could not extract the package.xml file from "phar://C:/Program Files (x86)/Zend/ZendServer/bin/PEAR/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.2.1.tar"
install failed
PS C:\Program Files (x86)\Zend\ZendServer\bin\PEAR>
我在Windows 8.1上使用Zend Sever CE 5.6。错误似乎是"无法解压缩package.xml文件"。
感谢您发帖...
答案 0 :(得分:2)
我刚遇到这个问题。以下是我能够解决的问题。
我将go-pear.phar重命名为go-pear.phar.old并从梨网站下载了go-pear.phar:
http://pear.php.net/go-pear.phar
我把它当作:
php go-pear.phar
一切都很顺利。 Zend提供的那个当然有一些问题。