2016 windows安装phing:安装成功

21:39 2016/7/21
2016 windows安装phing:安装成功
注意:
出现错误时就去更新pear:
参见:http://www.cnblogs.com/pinnasky/archive/2011/12/20/2295121.html
国外解释:
To fix it I had to upgrade PEAR itself:
.......

And then phing installed perfect:
参见国外解释:http://gruz.org.ua/en/tech-blog/linux-notes/51-opensuse-114-linux-phing-install-problem.html
或者国内:http://www.cnblogs.com/pinnasky/archive/2011/12/20/2295121.html

特别注意:下载压缩包安装的方式要进行一步命令:pear install phing-2.14.0.tgz
注意:命令中是直接运行的压缩包,而不是解压缩后的包!!

二、phing的安装配置
phing有两种安装方法,第一种方法是利用pear命令安装,第二种方法是自己下载phing包并配置相关环境变量。第一种方法目前容易失败,所以这里介绍第二种方法。
安装phing,要先搭建好php环境。
然后,去官网http://www.phing.info/ 下载最新版的phing压缩包,我下载的是phing-2.6.1.zip,把压缩包放在D:\Program Files\phing目录下,解压,然后,我们需要配置环境变量如下:
PHING_HOME=D:\Program Files\phing

PHP_CLASSPATH=D:\Program Files\phing\classes

PHP_COMMAND=D:\AppServ\php5\php.exe

PATH=%PHING_HOME%\bin

为了验证phing是否安装成功,我们打开cmd命令行,输入phing,如果出现:Buildfile:build.xml does not exist!,则表示安装成功。
感谢参见:http://blog.csdn.net/onlyanyz/article/details/12704639
去它官网下载压缩包:
页面上下载点击处:Or, manually download the ?package and install using:
下载页面:http://www.phing.info/trac/wiki/Users/News/Phing%202.14.0%20released

出现错误:
F:\wamp\bin>pear install phing-2.14.0.tgz
WARNING: "pear/PEAR_PackageFileManager" is deprecated in favor of "pear/PEAR_PackageFileManager2"
Unknown remote channel: pear.pdepend.org
Unknown remote channel: pear.phpmd.org
Unknown remote channel: pear.phpdoc.org
Did not download optional dependencies: phing/phingdocs, pear/VersionControl_Git, pecl/Xdebug, pear/PEAR_PackageFileManager, pear/Services_Amazon_S3, pear/HTTP_Request2, channel://pear.pdepend.org/PHP_Depend, channel://pear.phpmd.org/PHP_PMD, channel://pear.phpdoc.org/phpDocumentor, pear/PHP_CodeSniffer, pear/Net_Growl, use --alldeps to download automatically
phing/phing can optionally use package "phing/phingdocs" (version >= 2.14.0)
phing/phing requires package "pear/VersionControl_SVN" (version >= 0.4.0), installed version is 0.3.3
phing/phing can optionally use package "pear/VersionControl_Git" (version >= 0.4.3)
phing/phing can optionally use package "pecl/Xdebug" (version >= 2.0.5)
phing/phing can optionally use package "pear/PEAR_PackageFileManager" (version >= 1.5.2)
phing/phing can optionally use package "pear/Services_Amazon_S3" (version >= 0.3.1)
phing/phing can optionally use package "pear/HTTP_Request2" (version >= 2.1.1)
phing/phing can optionally use package "channel://pear.pdepend.org/PHP_Depend" (version >= 0.10.0)
phing/phing can optionally use package "channel://pear.phpmd.org/PHP_PMD" (version >= 1.1.0)
phing/phing can optionally use package "channel://pear.phpdoc.org/phpDocumentor" (version >= 2.0.0b7)
phing/phing can optionally use package "pear/PHP_CodeSniffer" (version >= 1.5.0)
phing/phing can optionally use package "pear/Net_Growl" (version >= 2.6.0)
No valid packages found
install failed

F:\wamp\bin>

清理缓存:
F:\wamp\bin>pear clear-cache
reading directory F:\wamp\www\my_pear\my_cache
400 cache entries cleared
F:\wamp\bin>

出现错误,更新pear:
参见:http://www.cnblogs.com/pinnasky/archive/2011/12/20/2295121.html
国外解释:
To fix it I had to upgrade PEAR itself:
.......

And then phing installed perfect:

# pear install phing/phing
Unknown remote channel: pear.phpunit.de
WARNING: "pear/PEAR_PackageFileManager" is deprecated in favor of "pear/PEAR_PackageFileManager2"
Unknown remote channel: pear.pdepend.org
Unknown remote channel: pear.phpmd.org
Unknown remote channel: pear.phpunit.de
Unknown remote channel: pear.docblox-project.org
Did not download optional dependencies: channel://pear.phpunit.de/PHPUnit, pecl/Xdebug, pear/PEAR_PackageFileManager, channel://pear.pdepend.org/PHP_Depend, channel://pear.phpmd.org/PHP_PMD, channel://pear.phpunit.de/phpcpd, channel://pear.docblox-project.org/DocBlox, use --alldeps to download automatically
phing/phing can optionally use package "channel://pear.phpunit.de/PHPUnit" (version >= 3.4.0)
phing/phing can optionally use package "pecl/Xdebug" (version >= 2.0.5)
phing/phing can optionally use package "pear/PEAR_PackageFileManager" (version >= 1.5.2)
phing/phing can optionally use package "channel://pear.pdepend.org/PHP_Depend" (version >= 0.10.0)
phing/phing can optionally use package "channel://pear.phpmd.org/PHP_PMD" (version >= 1.1.0)
phing/phing can optionally use package "channel://pear.phpunit.de/phpcpd" (version >= 1.3.2)
phing/phing can optionally use package "channel://pear.docblox-project.org/DocBlox" (version >= 0.14.0)
downloading phing-2.4.8snapshot20111006230626.tgz ...
Starting to download phing-2.4.8snapshot20111006230626.tgz (414,835 bytes)
.....................................................................................done: 414,835 bytes
install ok: channel://pear.phing.info/phing-2.4.8snapshot20111006230626

参见:http://gruz.org.ua/en/tech-blog/linux-notes/51-opensuse-114-linux-phing-install-problem.html

安装成功。

时间: 2024-10-07 05:30:17

2016 windows安装phing:安装成功的相关文章

阿里云Windows Server 2012安装SharePoint 2016.docx

阿里云安装SharePoint 2016 一:系统环境1. 基础环境Windows Server 20124C 8G (请根据真实环境设计架构以及购买服务器配置) 2. 软件环境 SQL server 2012 expressSharepoint 2016ADDNSIIS 3. 必备组件 1)  Net Framework 3.5 (安装SQL server 需要.net Framework3.5支持)使用"添加角色和功能"安装可能会安装失败,参考链接:https://help.ali

在Windows Server 2016 Core模式下安装Windows Admin Center

之前给大家介绍了Windows Admin Center的功能和界面:http://blog.51cto.com/rdsrv/2103443 但安装Windows Admin Center是基于Windows Server 2016的图形化GUI安装的Windows Admin Center的,今天我主要给大家介绍在Windows Server 2016 Core模式下(没有GUI)安装Windows Admin Center,为什么要单独介绍在Core模式下安装Windows Admin Ce

Windows 10 上安装 3D Studio Max 2016 报错的解决办法

在 Windows 10 上安装 3D Stuido Max 2016 报错,无法正常安装,查看日志是 VC 运行时安装错误,经过分析发现在 Windows 10 上已经有这些运行时并且版本比安装包中自带的还要高,所以安装总是失败,分析安装程序配套的 setup.ini 文件,发现里面有运行时安装的配置信息,并且可以忽略错误,因此修改 setup.ini 文件,然后就可以顺利进行安装了,修改后的 setup.ini 文件如所示 #============= VCREDIST Begin ====

Sqlserver 2016 R Service环境安装的各种错误(坑)解决办法

相信很多朋友都会慕名Sqlserver 2016的R语言功能,将自己的数据库升级到Sqlserver 2016,但是当你安装完Sqlserver 2016的R语言组件之后,你会发现并不能直接使用,比如当你在SSMS中执行下面这段测试R语言命令的时候,Sqlserver 2016会各种报错... exec sp_execute_external_script @language =N'R', @script=N'OutputDataSet<-InputDataSet', @input_data_1

史上最详细Windows版本搭建安装React Native环境配置 转载,比官网的靠谱亲测可用

史上最详细Windows版本搭建安装React Native环境配置 2016/01/29 |  React Native技术文章 |  Sky丶清|  95条评论 |  33530 views 编辑推荐:稀土掘金 是一个高质量的技术社区,从 React Native 到 RxJava,性能优化到优秀开源库,让你不错过移动开发的每一个技术干货.各大应用市场搜索「掘金」,技术干货尽在掌握中. 说在前面的话: 感谢同事金晓冰倾情奉献本环境搭建教程 之前我们已经讲解了React Native的OS X

在VM虚拟机上安装Microsoft Dynamics CRM 2016 步骤图解及安装注意事项(转载)

本文转载 出处:http://www.cnblogs.com/lujiangping/archive/2016/06/02/5552443.html 安装Dynamics CRM 2016环境配置要求: 系统版本:Windows Server 2012 R2(必须) SQL 版本: SQLServer2014SP1-FullSlipstream-x64-ENU(必须) Dynamics CRM 版本:CRM2016-Server-ENU-amd64(必须) 安装步骤: 1.在虚拟机安装windo

Windows Server2016下安装及配置SCDPM2016

我们前面文章介绍了windows server 2016下安装及配置SCOM2016,今天我们介绍一下windows server 2016下安装及配置SCDPM2016,从SCDPM2016的安装及配置上来看,其实SCDPM2016和SCDPM2012几乎一样,当然,虽然从安装配置上稍微有点不一样,但是从功能上还是有一定差别的,具体就不多介绍了,我们可以在官网上进行参考.具体见下: 环境介绍: Domain Name:IXMSOFT.COM Hostname:Ixm-dc.ixmsoft.co

在Windows Server2016中安装SQL Server2016(转)

在Windows Server2016中安装SQL Server2016(转) 转自: http://blog.csdn.net/yenange/article/details/52980135 参考: SQL Server2016企业版 附全版本key - moonpure的专栏 - CSDN博客  http://blog.csdn.net/moonpure/article/details/52066567 SQL Server2016安装硬.软件条件:点击打开链接 WinServer2016

[转载]SAP ERP 6.0 EHP7 SR2(WINDOWS MSSQL版)安装说明

原文 by 枫竹丹青 ⋅ 1.安装准备 1.1.版本说明 本文是描述在一个Windows虚拟机.SQL Server数据库环境下,安装SAP ERP 6.0 EHP7 SR2服务器,安装完成虚拟机文件尺寸约60G,可以很方便地转到笔记本的SSD硬盘中使用. SAP ERP 6.0 EHP7 SR2隶属于SAP Business Suite 7i 2013 Support Release 2商务套件,于2014年底发布,除ERP 6.0 EHP7 SP2外,还包括CRM 7.0 EHP3 SR2.