windows - ZendServer 在 Windows 上安装 PEAR。无法提取 package.xml 文件

标签 windows powershell installation pear zend-server

我做的第一件事是修改“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 文件”。

感谢您发帖...

最佳答案

我刚遇到这个问题。这是我如何修复它的。

我将 go-pear.phar 重命名为 go-pear.phar.old 并从 pear 网站下载了 go-pear.phar:

http://pear.php.net/go-pear.phar

然后我将它运行为:

php go-pear.phar

一切都很顺利。 Zend 提供的那个当然有一些问题。

关于windows - ZendServer 在 Windows 上安装 PEAR。无法提取 package.xml 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22825031/

相关文章:

c++ - 将鼠标点击发送到 WebEngineView Qt C++

c++ - 如何在 c/c++ 中从 Windows PC 获取唯一的硬件/软件签名

c# - 我可以从 C# 表单运行 Windows 命令吗?

windows - 哪些命令不能与 cmd 命令一起出现在一行/Windows 运行框中?

linux - 在 Linux 系统中安装 java 时出现错误

powershell - Powershell-让用户从一月到十二月的列表中进行选择

sql - 多线程帮助/Powershell

animation - PowerShell:控制台和 SetCursorPosition 中的角色动画变得疯狂

windows - 设置窗口安装程序的属性,例如作者、说明

objective-c - 安装应用程序后运行相同的代码