Home > Article > Backend Development > PHP newbie----installing Pear and PHPUnit in WAMP integrated environment-failed
Installation Preparation
You must also pay attention here. The go-pear.phar you downloaded should not be garbled. It is best to directly save the link target as, do not open the web page, copy and paste, experience
Start installing pear
1. Open cmd and enter your php installation directory. The one that corresponds to mine is php5.3.10. Execute the command: php -d phar.require_hash=0 PEAR/go-pear.phar
2. After running, you will be prompted whether to install on system or local. Enter Local and confirm yes.
3. Tip: Enter Enter key to continue installation, choose to modify php.ini, enter Y
and then continue to enter Enter key to complete the installation.
4. Use the command: pear -list to view the installed Package
Install PHPUnit
Still in the php directory, run the command:
<code>pear upgrade-all pear channel-discover pear<span>.phpunit</span><span>.de</span> pear channel-discover components<span>.ez</span><span>.no</span> pear channel-discover pear<span>.symfony</span>-project<span>.com</span> pear update-channels</code>
An error may be reported in the middle. The advice of the seniors is to execute the error command a few times.
If the following error occurs, open php - openssl extension
aaa, but it still failed in the end
The above is an introduction to PHP newbies - installing Pear and PHPUnit in the WAMP integrated environment - failed, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.