linux 无法 安装swoole

运行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.

阅读 162
评论 更新于 9月6日
    1 个回答
    宇润
    • 670

    php5太老了,请用php7.1+

    评论 赞赏 9月6日
      撰写回答

      登录后参与交流、获取后续更新提醒