Install PEAR in WINDOWS. install PEAR_PHP in WINDOWS.

Source: Internet
Author: User
Install PEAR in WINDOWS and PEAR in WINDOWS. Install PEAR in WINDOWS, WINDOWS install PEAR 1, download the go-pear.phar file from the official website, address pear. php. netgo-pear.phar put the downloaded file go-pear.phar in the PHP installation directory install PEAR in WINDOWS, WINDOWS install PEAR

1. download go-pear.phar files from the official website, address http://pear.php.net/go-pear.phar

Put the downloaded file go-pear.phar to the PHP installation directory, dos command to enter the PHP installation directory to runphp go-pear.pharIf you have any questions, press enter and select by default. If you do not press the Enter key within one minute, an error is prompted and you exit. Then you just need to re-execute the go-pear.bat.

If the operation is successful, it will:

After the installation is complete, a registry file of pear_env.arg is generated under the PHP installation directory. double-click the file and add the information to the registry.

Install the Mail plug-in: D: \ mvam \ php5> pear install mail

Install the MDB2 plug-in: D: \ mvam \ php5> pear install MDB2

Install the PHPUnit plug-in:

D: \ mvam \ php5> pear config-set auto_discover 1

D: \ mvam \ php5> pear install pear.phpunit.de/PHPUnit

Add phpunit to the environment variable, and then phpunit -- help can see all usage, as shown below:
D: \ mvam \ php5> phpunit -- help
PHPUnit 4.0.17 by Sebastian Bergmann.

You have installed PHPUnit via PEAR. This installation method is no longer
Supported and http://pear.phpunit.de/will be shut down no later
December, 31 2014.

Please read http://phpunit.de/manual/current/en/installation.html and
Learn how to use PHPUnit from a PHAR or install it via Composer.

Usage: phpunit [options] UnitTest [UnitTest. php]
Phpunit [options]

Code Coverage Options:

-- Coverage-clover Generate code coverage report in Clover XML format.
Coverage-crap4j Generate code coverage report in Crap4J XML format.
-- Coverage-html Generate code coverage report in HTML format.
-- Coverage-php Export PHP_CodeCoverage object to file.
-- Coverage-text = Generate code coverage report in text format.
Default: Standard output.
-- Coverage-xml Generate code coverage report in PHPUnit XML format.


Logging Options:

-- Log-junit Log test execution in JUnit XML format to file.
-- Log-tap Log test execution in TAP format to file.
-- Log-json Log test execution in JSON format.
-- Testdox-html Write agile documentation in HTML format to file.
-- Testdox-text Write agile documentation in Text format to file.

Test Selection Options:

-- Filter Filter which tests to run.
-- Testsuite Filter which testsuite to run.
-- Group... Only runs tests from the specified group (s ).
-- Exclude-group... Exclude tests from the specified group (s ).
-- List-groups List available test groups.
-- Test-suffix... Only search for test in files with specified
Suffix (es). Default: Test. php,. phpt

Test Execution Options:

-- Report-useless-tests Be strict about tests that do not test anything.
-- Strict-coverage Be strict about unintentionally covered code.
-- Disallow-test-output Be strict about output during tests.
-- Enforce-time-limit Enforce time limit based on test size.
-- Strict Run tests in strict mode (enables all of the above ).


-- Process-isolation Run each test in a separate PHP process.
-- No-globals-backup Do not backup and restore $ GLOBALS for each test.
-- Static-backup Backup and restore static attributes for each test.

-- Colors Use colors in output.
-- Stderr Write to STDERR instead of STDOUT.
-- Stop-on-error Stop execution upon first error.
-- Stop-on-failure Stop execution upon first error or failure.
-- Stop-on-risky Stop execution upon first risky test.
-- Stop-on-skipped Stop execution upon first skipped test.
-- Stop-on-incomplete Stop execution upon first incomplete test.
-V | -- verbose Output more verbose information.
-- Debug Display debugging information during test execution.


-- Loader TestSuiteLoader implementation to use.
-- Repeat Runs the test (s) repeatedly.
-- Tap Report test execution progress in TAP format.
-- Testdox Report test execution progress in TestDox format.
-- Printer TestSuiteListener implementation to use.

Configuration Options:

-- Bootstrap A "bootstrap" PHP file that is run before the tests.

-C | -- configuration Read configuration from XML file.
-- No-configuration Ignore default configuration file (phpunit. xml ).
-- Include-path Prepend PHP's include_path with given path (s ).
-D key [= value] Sets a php. ini value.

Miscellaneous Options:

-H | -- help Prints this usage information.
-- Version Prints the version and exits.

-- Self-update Update PHPUnit to the latest version. configure the PHP. ini file.

Tell PHP your PEAR installation directory

Change include_path in php. ini to the PEAR installation directory named include_path = ".; D:/mvam/php5/pear"

II. installation package method:

In the PHP Directory, execute pear install-a Auth using the command line to create the AUTH directory under the PHP \ PEAR directory, which contains the file package. -Option a indicates all other packages on which the Auth package depends.


In windows, how does xampp install pear? I am a Windows 7 7 system. according to people's answers, they all say that they are running go-pearbat.

Haha this you already have a go-pear.phar file, it is easy to do, please manipulate as follows:
1. open a command prompt (included in the attachment) or enter cmd during running.
2. find the directory where your go-pear.phar is located and use the cd command to switch over.
3. then use the php go-pear.phar in the command prompt to install pear.
4. manually configure each option.

Good Luck ~~

Installing Structures_Graph-104 manually on windows platforms, pear install Structures_Graph-104, error

Error, cannot open Structures_Graph-1.0.4.tgz file, this is translation, software I don't know, can't help you.

One, download go-pear.phar files from the official website, address http://pear.php.net/go-pear.phar will download the file go-pear.phar put PHP installation directory...

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.