We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon Installation with PHP 7

Hello I am struggling with installation of the latest Phalcon. FIrstly environment:

  1. Centos 7.5
  2. PHP 7.2 (from the remi repo)

I have followed the instruction carefully and have come up short here.

yum install php70u-phalcon Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile

  • base: mirrors.tripadvisor.com
  • epel: fedora-epel.mirrors.tds.net
  • extras: mirrors.tripadvisor.com
  • remi-php72: repo1.ash.innoscale.net
  • remi-safe: repo1.ash.innoscale.net
  • updates: mirror.math.princeton.edu Resolving Dependencies --> Running transaction check ---> Package php70u-phalcon.x86_64 0:3.4.0-2.ius.el7.centos will be installed --> Processing Dependency: php(zend-abi) = 20151012-64 for package: php70u-phalcon-3.4.0-2.ius.el7.centos.x86_64 --> Processing Dependency: php(api) = 20151012-64 for package: php70u-phalcon-3.4.0-2.ius.el7.centos.x86_64 --> Processing Dependency: php70u-pdo(x86-64) for package: php70u-phalcon-3.4.0-2.ius.el7.centos.x86_64 --> Processing Dependency: php70u-common(x86-64) for package: php70u-phalcon-3.4.0-2.ius.el7.centos.x86_64 --> Finished Dependency Resolution Error: Package: php70u-phalcon-3.4.0-2.ius.el7.centos.x86_64 (phalcon_stable) Requires: php(zend-abi) = 20151012-64 Installed: php-common-7.2.6-1.el7.remi.x86_64 (@remi-php72) php(zend-abi) = 20170718-64 Available: php-common-5.4.16-45.el7.x86_64 (base) php(zend-abi) = 20100525-64 Available: php-common-7.2.5-1.el7.remi.x86_64 (remi-php72) php(zend-abi) = 20170718-64 Error: Package: php70u-phalcon-3.4.0-2.ius.el7.centos.x86_64 (phalcon_stable) Requires: php70u-common(x86-64) Error: Package: php70u-phalcon-3.4.0-2.ius.el7.centos.x86_64 (phalcon_stable) Requires: php(api) = 20151012-64 Installed: php-common-7.2.6-1.el7.remi.x86_64 (@remi-php72) php(api) = 20170718-64 Available: php-common-5.4.16-45.el7.x86_64 (base) php(api) = 20100412-64 Available: php-common-7.2.5-1.el7.remi.x86_64 (remi-php72) php(api) = 20170718-64 Error: Package: php70u-phalcon-3.4.0-2.ius.el7.centos.x86_64 (phalcon_stable) Requires: php70u-pdo(x86-64) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest

I dont know what else to try besides installing certain php 5 packages which I really dont want to do.



85.5k
Accepted
answer
edited Jun '18

you need to have php-dev package installed, i have no idea what's the package name for centOS, but you must be able to see output of

which php-config
which phpize

if so...

git clone https://github.com/phalcon/cphalcon.git
cd cphalcon/build
./install

all the help i can give you, i am ubuntu user myself

I have already tried to conpile and install with no luck.

which php-config

/usr/bin/php-config

which phpize

/usr/bin/phpize

You will notice that it is expecting :

    Requires: php(api) = 20151012-64
       Installed: php-common-7.2.6-1.el7.remi.x86_64 (@remi-php72)
           php(api) = 20170718-64

and

 Requires: php(zend-abi) = 20151012-64
       Installed: php-common-7.2.6-1.el7.remi.x86_64 (@remi-php72)
           php(zend-abi) = 20170718-64

I wasn't building the project correctly its working perfectly now