Home > Article > PHP Framework > swoole compilation and installation steps
Swoole compilation and installation steps
The Swoole extension is built according to the PHP standard extension. Use phpize to generate PHP compilation configuration, ./configure to do compilation configuration detection, make to compile, and make install to install. (Recommended learning: swoole video tutorial)
Please download the releases version of swoole, and pulling the latest code directly from the github trunk may not compile
If The current user is not root and may not have write permissions to the php directory. You need sudo or su
during installation. If you are directly git pulling the update code on the git branch, be sure to execute make clean
## before recompiling.#Install PHP 7.3.1
https://blog.csdn.net/uisoul/article/details/86631469
Download Swoole
wget https://github.com/swoole/swoole-src/archive/v4.3.3.tar.gz
Unzip
tar -xzvf v4.3.3.tar.gz1
Compile and install
/usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --enable-openssl --enable-http2 --enable-async-redis --enable-sockets --enable-mysqlnd make && make install
The above is the detailed content of swoole compilation and installation steps. For more information, please follow other related articles on the PHP Chinese website!