Phalcon 在 ubuntu 上安裝出現錯誤

Phalcon 在 ubuntu 上安裝出現錯誤

我正在嘗試使用以下命令在我的 ubuntu 14.04 中安裝 phalcon

複製https://github.com/phalcon/cphalcon.git

cd cphacon/構建

須藤./安裝

它給了這樣的錯誤

/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 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) 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".看著影片如果你仍然感到困惑。

相關內容