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