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.

阅读 1.6k
1 个回答

php5太老了,请用php7.1+

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题