cd /data/server/ wget https://github.com/swoole/swoole-src/archive/v1.9.1-stable.tar.gz tar zxvf v1.9.1-stable.tar.gz -C /data/server/ cd swoole-src-1.9.1-stable
/data/server/php7/bin/phpize 【 这一步很少出问题: 我的报错如下: 错误一: root@ubuntu:/data/server/swoole-src-1.9.1-stable# /data/server/php7/bin/phpize Configuring for: PHP Api Version: 20151012 Zend Module Api No: 20151012 Zend Extension Api No: 320151012 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. 错误二: Cannot find config.m4. Make sure that you run '/data/server/php7/bin/phpize'in the top levelsourcedirectoryof the module
root@ubuntu:/home/afei# php -ini|grep 'extesion_dir' PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/swoole.so' - /usr/lib/php/20151012/swoole.so: cannot open shared object file: No such file or directory in Unknown on line 0 root@ubuntu:/home/afei# cd /usr/lib/php/20151012 root@ubuntu:/usr/lib/php/20151012# ls -l