Phalcon 在 ubuntu 上安装时出错

Phalcon 在 ubuntu 上安装时出错

我正在尝试使用以下命令在我的 ubuntu 14.04 中安装 phalcon

git 克隆https://github.com/phalcon/cphalcon.git

cd cphalcon/build

sudo./安装

并给出如下错误

/usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory
#include "pcre.h"
          ^
compilation terminated.

然后我谷歌了错误并找到了安装的解决方案

sudo apt-get 安装 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) but 1:8.31-       2ubuntu2.1 is to be installed
        Depends: libpcrecpp0 (= 1:8.31-2ubuntu2) but 1:8.31-2ubuntu2.1 is to be installed
E: Unable to correct problems, you have held broken packages.

请帮助我……

答案1

我不知道如何修复该错误。但你应该遵循官方文档:

    $ curl -s "https://packagecloud.io/install/repos..." | sudo bash

    $  sudo apt-get install php7.0-phalcon

现在,在某些 Linux 发行版(例如 Mint)中,您可能会遇到错误。我发现这个 视频以消除这些错误。您只需在文件中更改 linux 版本:/etc/apt/sources.list.d/phalcon_stable.list 例如,将其替换"/mint/ tessa""/debian/ stretch"。观看视频如果你仍然感到困惑。

相关内容