我做的第一件事是修改“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/
我需要在客户计算机上运行Ruby应用程序。通常需要几天才能完成(复制大备份文件)。问题是如果启用sleep,它会中断应用程序。否则,计算机将持续运行数周,直到我下次访问为止。有什么方法可以防止执行期间休眠并让Windows在执行后休眠吗?欢迎任何疯狂的想法;-) 最佳答案 Here建议使用SetThreadExecutionStateWinAPI函数,使应用程序能够通知系统它正在使用中,从而防止系统在应用程序运行时进入休眠状态或关闭显示。像这样的东西:require'Win32API'ES_AWAYMODE_REQUIRED=0x0
我在从html页面生成PDF时遇到问题。我正在使用PDFkit。在安装它的过程中,我注意到我需要wkhtmltopdf。所以我也安装了它。我做了PDFkit的文档所说的一切......现在我在尝试加载PDF时遇到了这个错误。这里是错误:commandfailed:"/usr/local/bin/wkhtmltopdf""--margin-right""0.75in""--page-size""Letter""--margin-top""0.75in""--margin-bottom""0.75in""--encoding""UTF-8""--margin-left""0.75in""-
我想为Heroku构建一个Rails3应用程序。他们使用Postgres作为他们的数据库,所以我通过MacPorts安装了postgres9.0。现在我需要一个postgresgem并且共识是出于性能原因你想要pggem。但是我对我得到的错误感到非常困惑当我尝试在rvm下通过geminstall安装pg时。我已经非常明确地指定了所有postgres目录的位置可以找到但仍然无法完成安装:$envARCHFLAGS='-archx86_64'geminstallpg--\--with-pg-config=/opt/local/var/db/postgresql90/defaultdb/po
我有一个对象has_many应呈现为xml的子对象。这不是问题。我的问题是我创建了一个Hash包含此数据,就像解析器需要它一样。但是rails自动将整个文件包含在.........我需要摆脱type="array"和我该如何处理?我没有在文档中找到任何内容。 最佳答案 我遇到了同样的问题;这是我的XML:我在用这个:entries.to_xml将散列数据转换为XML,但这会将条目的数据包装到中所以我修改了:entries.to_xml(root:"Contacts")但这仍然将转换后的XML包装在“联系人”中,将我的XML代码修改为
我对最新版本的Rails有疑问。我创建了一个新应用程序(railsnewMyProject),但我没有脚本/生成,只有脚本/rails,当我输入ruby./script/railsgeneratepluginmy_plugin"Couldnotfindgeneratorplugin.".你知道如何生成插件模板吗?没有这个命令可以创建插件吗?PS:我正在使用Rails3.2.1和ruby1.8.7[universal-darwin11.0] 最佳答案 随着Rails3.2.0的发布,插件生成器已经被移除。查看变更日志here.现在
我打算为ruby脚本创建一个安装程序,但我希望能够确保机器安装了RVM。有没有一种方法可以完全离线安装RVM并且不引人注目(通过不引人注目,就像创建一个可以做所有事情的脚本而不是要求用户向他们的bash_profile或bashrc添加一些东西)我不是要脚本本身,只是一个关于如何走这条路的快速指针(如果可能的话)。我们还研究了这个很有帮助的问题:RVM-isthereawayforsimpleofflineinstall?但有点误导,因为答案只向我们展示了如何离线在RVM中安装ruby。我们需要能够离线安装RVM本身,并查看脚本https://raw.github.com/wayn
我尝试运行2.x应用程序。我使用rvm并为此应用程序设置其他版本的ruby:$rvmuseree-1.8.7-head我尝试运行服务器,然后出现很多错误:$script/serverNOTE:Gem.source_indexisdeprecated,useSpecification.Itwillberemovedonorafter2011-11-01.Gem.source_indexcalledfrom/Users/serg/rails_projects_terminal/work_proj/spohelp/config/../vendor/rails/railties/lib/r
我有一个奇怪的问题:我在rvm上安装了rubyonrails。一切正常,我可以创建项目。但是在我输入“railsnew”时重新启动后,我有“程序'rails'当前未安装。”。SystemUbuntu12.04ruby-v"1.9.3p194"gemlistactionmailer(3.2.5)actionpack(3.2.5)activemodel(3.2.5)activerecord(3.2.5)activeresource(3.2.5)activesupport(3.2.5)arel(3.0.2)builder(3.0.0)bundler(1.1.4)coffee-rails(
我刚刚为fedora安装了emacs。我想用emacs编写ruby。为ruby提供代码提示、代码完成类型功能所需的工具、扩展是什么? 最佳答案 ruby-mode已经包含在Emacs23之后的版本中。不过,它也可以通过ELPA获得。您可能感兴趣的其他一些事情是集成RVM、feature-mode(Cucumber)、rspec-mode、ruby-electric、inf-ruby、rinari(用于Rails)等。这是我当前用于Ruby开发的Emacs配置:https://github.com/citizen428/emacs
我正在尝试在我的centos服务器上安装therubyracer,但遇到了麻烦。$geminstalltherubyracerBuildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingtherubyracer:ERROR:Failedtobuildgemnativeextension./usr/local/rvm/rubies/ruby-1.9.3-p125/bin/rubyextconf.rbcheckingformain()in-lpthread...yescheckingforv8.h...no***e