[Go]pear Windows installation

Source: Internet
Author: User
Tags pear

From:http://jingyan.baidu.com/article/ca41422fd8cf3d1eae99ed3e.html

Because you want to use Phpdocument to generate the document, you have to install the pear extension, and the online tutorial is unclear, so write a detailed tutorial for your reference

Method/Step
  1. Check if Go-pear.bat or Go-pear.phar file exists

    Check the PHP installation directory go-pear.bat or Go-pear.phar file exists, if not exist, to the official website to download, here can not put the link to the official website, you go to search it.

  2. Execute the Pear installation command

    Open the Command window, switch to the PHP installation directory, execute the following command (you can also add a PHP environment variable, it is not so troublesome to switch directories, but I installed multiple versions of PHP, so there is no environment variable added).

    PHP Go-pear.phar

  3. Installing Pear

    When the following sentence appears, you can directly press ENTER, if the last error, reinstall, here you can enter the local, I do not know why, because encountered a direct return, to the end but the installation is unsuccessful.

    Is you installing a system-wide PEAR or a local copy?

    (system|local) [System]:

  4. Configuring the Pear Directory

    Here you can enter the corresponding data and change the directory location of the pear. Words there is no good change, not very familiar with, or directly enter the insurance point.

  5. Change the php.ini configuration file

    Tip We want to change php.ini, of course, enter Y,

  6. Determine the Pear directory

    Direct return

  7. Register the EVN variable,

    The correct directory for the Pear_env.reg file shown in the figure should be D:\phpStudy\php52\PEAR_ENV.reg, and I don't know why a slash is missing.

    Find this file and double-click on him.

  8. Check if pear is installed

    Use pear directly, if the use of Pear command indicates that the installation is successful

    steps to read

[Go]pear Windows installation

Related Article

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.