Simple talk about how to install swoole framework in linux.
In fact, the specific installation steps and installing php source similar.
Download Source = "Performing configure =" make = "make install installation
Step One: Download swoole source installation
Download Path: https://github.com/swoole/swoole-src
git clone https://github.com/swoole/swoole-src.git
Step two: enter swoole file directory, use phpize configure file
Under swoole directory will find there is no configure file, you need to generate PHP.
PHP file directory / bin / phpize
Example:
/data/sort/php/bin/phpize
The third step: configure command execution
./configure --with-php-config=/data/soft/php/bin/php-config
Step four: make command to compile
make
Step five: it can detect whether compiled: make test (does not have to perform, because relatively long time)
make test
Step Six: make install to install extensions
make install
The resulting file path:
/home/work/php/lib/php/extensions/no-debug-non-zts-20170718/
Extended file find generated swoole.so
More PHP, LINUX can focus public number: Okinawa memory programming library acquisition
Recommended books: