Phalcon Install Give Error on Ubuntu

I'm trying to install phalcon in my ubuntu 14.04 by using below commands

git clone

cd cphalcon/build

sudo ./install

and it give a error like this

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

then i google the error and found solution as installing

sudo apt-get install libpcre3-dev

when i try to do that it give error like this

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.

pleas help me with this...

1

1 Answer

I don't know how to fix the error. But you should follow the official doc:

    $ curl -s "" | sudo bash

    $  sudo apt-get install php7.0-phalcon

Now in ccertain linux distros (eg mint) you may encounter errors. I found this video to remove those errors. You simply change linux version in the file: /etc/apt/sources.list.d/phalcon_stable.list For example, replace "/mint/ tessa" with "/debian/ stretch" . Watch the video if you are still confused.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest