Windows installation phing: Installation Successful

Source: Internet
Author: User
Tags deprecated pear


21:39 2016/7/21
Windows installation phing: Installation Successful
Attention:
To update pear When an error occurs:
See also: http://www.cnblogs.com/pinnasky/archive/2011/12/20/2295121.html
Foreign interpretation:
To fix it I had to upgrade PEAR itself:
.......

And then phing installed perfect:
See also foreign interpretation: http://gruz.org.ua/en/tech-blog/linux-notes/51-opensuse-114-linux-phing-install-problem.html
or domestic: http://www.cnblogs.com/pinnasky/archive/2011/12/20/2295121.html

Special Note: Download the installation of the compressed package to take one step command: Pear install phing-2.14.0.tgz
Note: The command is run directly from the compressed package, not the unpacked package!!

Second, the installation configuration of phing
Phing has two installation methods, the first is to install with the Pear command, and the second is to download the Phing package yourself and configure the relevant environment variables. The first method is now prone to failure, so the second method is described here.
Install the phing, the first to build a good PHP environment.
Then, to the official website http://www.phing.info/Download the latest version of the Phing compressed package, I downloaded the phing-2.6.1.zip, put the compressed package in the D:\Program files\phing directory, unzip, and then, We need to configure the environment variables as follows:
Phing_home=d:\program files\phing

Php_classpath=d:\program files\phing\classes

Php_command=d:\appserv\php5\php.exe

Path=%phing_home%\bin

In order to verify that the Phing installation was successful, we opened the cmd command line, entered Phing, and if it appeared: Buildfile:build.xml does not exist!, the installation was successful.
Thanks See: http://blog.csdn.net/onlyanyz/article/details/12704639
Go to its official website to download the ZIP package:
Page download and click: Or, manually download the. Package and install using:
Download page: http://www.phing.info/trac/wiki/Users/News/Phing%202.14.0%20released

Error occurred:
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>

To clean up the cache:
F:\wamp\bin>pear Clear-cache
Reading directory F:\wamp\www\my_pear\my_cache
Cache entries Cleared
F:\wamp\bin>

Error occurred, update pear:
See also: http://www.cnblogs.com/pinnasky/archive/2011/12/20/2295121.html
Foreign interpretation:
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

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

The installation was successful.

Windows installation phing: Installation Successful

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.