运行pecl install swoole
报错:/usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory
#include "pcre.h"
网络搜索解决方案:install libpcre3-dev
运行命令:apt-get install libpcre3-dev
返回:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libpcre3-dev : Depends: libpcre3 (= 1:8.31-2ubuntu2.3) but 2:8.42-1+ubuntu14.04.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.
php5太老了,请用php7.1+