What is pecl? How to install pecl in centos?

Source: Internet
Author: User
I want to install the swoole extension in my system. The official website provides the pecl method for installation. However, after entering peclinstallswoole, the system says that the command was not found, then I haven't found out how to install pecl in linux after Baidu for a long time. What is this? how can I install it? I want to install the swoole extension in my system. The official website provides the pecl method for installation. However, after entering pecl install swoole, the system says that the command was not found, then I haven't found out how to install pecl in linux after Baidu for a long time. What is this? how can I install it?

Reply content:

I want to install the swoole extension in my system. The official website provides the pecl method for installation. However, after entering pecl install swoole, the system says that the command was not found, then I haven't found out how to install pecl in linux after Baidu for a long time. What is this? how can I install it?

PECL: PHP Extension Community Library

Official website: pecl.php.net

Generally, php is installed in the 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 soft chain it to the/usr/bin directory.

Yum install php-devel

# Ubuntu/Debian is like this (php-pear contains pecl, php5-dev contains phpize, pecl depends on phpize) apt-get install php-pear php5-devpecl install swoole # CentOS/Redhat should be like this yum install php-pear php-develpecl install swoole # if it is self-compiled PHP (assuming the installation directory is /opt/php/7.0) /opt/php/7.0/bin/phpize/opt/php/7.0/bin/pecl

PHP compilation and installation tutorial on Linux

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.