Install PEAR and PECL on Mac OS X

Source: Internet
Author: User
The following instructions install PEAR and PECL On Mac OS X under/usr/local/. PECL is bundled with PEAR. As simple as installing PEAR on MAC OS x.

PEAR is php 's package Repository and makes it easy-to-download and install PHP tools like /c7>phpunit and XDebug. I specifically recommend these II for every PHP developer.

Download PEAR

curl -O http://pear.php.net/go-pear.pharsudo php -d detect_unicode=0 go-pear.phar

Configure and Install PEAR

You should now is at a prompt to configure PEAR.

    1. Type and press. 1 return
    2. Enter:

      /usr/local/pear
    3. Type and press. 4 return
    4. Enter:

      /usr/local/bin
    5. Pressreturn

Verify PEAR

You should is able to type:

pear version

Eventually, if you use any extensions or applications from the PEAR, you could need to update PHP's include path.

Reference article address: http://jason.pureconcepts.net/2012/10/install-pear-pecl-mac-os-x/

The above describes the install PEAR and PECL on Mac OS X, including aspects of the content, I hope to be interested in PHP tutorial friends helpful.

  • 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.