php7 cannot be installed swoole What should I do?
Install the swoole extension in the compiled and installed php7.1.
1. Download the swoole extension
Download address: http://pecl.php.net/package/swoole
bash wget -c http://pecl.php.net/get/swoole-4.2.1.tgz
2 , Unzip the swoole package
bash tar xzvf swoole-4.2.1.tgz cd swoole-4.2.1
3. Generate the configure configuration file
/usr/local/php/bin/phpize
4. Specify the php configuration file for pre-compilation
./configure --with-php-config=/usr/local/php/bin/php-config
5. Compile and install
make && make install
Compilation and installation results:
##6. Compile the php.ini file and add swoole.sobash vim /usr/local/php/etc/php.ini
bash service php-fpm restart
The above is the detailed content of What should I do if php7 cannot install swoole?. For more information, please follow other related articles on the PHP Chinese website!