PHP newbie----installing Pear and PHPUnit in WAMP integrated environment-failed

WBOY
Release: 2016-07-29 09:07:28
Original
1267 people have browsed it

Installation Preparation

  1. Refer to the technical blog installed by my predecessors to explain my own environment. I will also explain it here: win8 64bit + php5.3.10 + Apache2.2.21
  2. Download go-pear.phar, address: http ://pear.php.net/go-pear.phar
    Place the downloaded .phar file in the newly created PEAR folder under the php5.3.10 directory. Pay attention to the directory where it is placed.
    php新手----WAMP集成环境下安装Pear和PHPUnit --失败了

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

php新手----WAMP集成环境下安装Pear和PHPUnit --失败了

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

php新手----WAMP集成环境下安装Pear和PHPUnit --失败了

and then continue to enter Enter key to complete the installation.

4. Use the command: pear -list to view the installed Package

php新手----WAMP集成环境下安装Pear和PHPUnit --失败了


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>
Copy after login

php新手----WAMP集成环境下安装Pear和PHPUnit --失败了

php新手----WAMP集成环境下安装Pear和PHPUnit --失败了

php新手----WAMP集成环境下安装Pear和PHPUnit --失败了

php新手----WAMP集成环境下安装Pear和PHPUnit --失败了

php新手----WAMP集成环境下安装Pear和PHPUnit --失败了

An error may be reported in the middle. The advice of the seniors is to execute the error command a few times.

php新手----WAMP集成环境下安装Pear和PHPUnit --失败了

If the following error occurs, open php - openssl extension
php新手----WAMP集成环境下安装Pear和PHPUnit --失败了
php新手----WAMP集成环境下安装Pear和PHPUnit --失败了

aaa, but it still failed in the end
php新手----WAMP集成环境下安装Pear和PHPUnit --失败了

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!