What is PECL? How do I install pecl under CentOS?

Source: Internet
Author: User
I want to install the swoole extension in my system, the official website is to install with pecl way, but I input pecl install swoole after the system said did not find the command, and then I Baidu has not found how to install pecl this thing in Linux, what is this is a , how to install him?

Reply content:

I want to install the swoole extension in my system, the official website is to install with pecl way, but I input pecl install swoole after the system said did not find the command, and then I Baidu has not found how to install pecl this thing in Linux, what is this is a , how to install him?

pecl:php Extension Community Library

Official website: pecl.php.net

General PHP installation, in his bin directory, such as/usr/local/php/bin

So if you want to use it directly, either add the bin directory to the environment variable path, or the soft link to the/usr/bin directory

Yum Install Php-devel

#Ubuntu/Debian上是这样(php-pear包含pecl,php5-dev包含phpize,pecl依赖phpize)apt-get install php-pear php5-devpecl install swoole#CentOS/Redhat上应该是这样yum install php-pear php-develpecl install swoole#如果是自行编译的PHP(假设安装目录为/opt/php/7.0)/opt/php/7.0/bin/phpize/opt/php/7.0/bin/pecl

Compile and install PHP Tutorial reference on Linux

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